For example, a description meta tag can be added like the following:
php
$view->registerMetaTag([
'name' => 'description',
'content' => 'This website is about funny raccoons.'
]);
will result in the meta tag .
public registerMetaTag ( array $options, string $key = null ) | ||
$options | array | the HTML attributes for the meta tag. |
$key | string | the key that identifies the meta tag. If two meta tags are registered with the same key, the latter will overwrite the former. If this is null, the new meta tag will be appended to the existing ones. |