diff --git a/src/ViewInjection/LinkTagsViewInjection.php b/src/ViewInjection/LinkTagsViewInjection.php index dcc1eb607..a8c0d61e0 100644 --- a/src/ViewInjection/LinkTagsViewInjection.php +++ b/src/ViewInjection/LinkTagsViewInjection.php @@ -11,8 +11,7 @@ class LinkTagsViewInjection implements LinkTagsInjectionInterface public function getLinkTags(): array { return [ - [ - '__key' => 'favicon', + 'favicon' => [ 'rel' => 'icon', 'href' => '/favicon.ico', ], diff --git a/src/ViewInjection/MetaTagsViewInjection.php b/src/ViewInjection/MetaTagsViewInjection.php index fd9f1850e..00b0fdcde 100644 --- a/src/ViewInjection/MetaTagsViewInjection.php +++ b/src/ViewInjection/MetaTagsViewInjection.php @@ -11,8 +11,7 @@ class MetaTagsViewInjection implements MetaTagsInjectionInterface public function getMetaTags(): array { return [ - [ - '__key' => 'generator', + 'generator' => [ 'name' => 'generator', 'content' => 'Yii', ],