📜  类型链接中的drupal 8 HTML - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:53.209000             🧑  作者: Mango

代码示例2
$link = [
  '#type' => 'link',
  '#title' => [
      '#type' => 'inline_template',
      '#template' => '{{ title }} ',
      '#context' => [
        'title' => $title
      ],
  ],
  '#url' => Url::fromRoute('user.pass'),
];