public function MetatagManager::tagsFromEntityWithDefaults in Metatag 8
Extracts all tags of a given entity.
And combines them with sitewide, per-entity-type, and per-bundle defaults.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity to extract meta tags from.
Return value
array Array of metatags.
Overrides MetatagManagerInterface::tagsFromEntityWithDefaults
File
- src/
MetatagManager.php, line 130
Class
- MetatagManager
- Class MetatagManager.
Namespace
Drupal\metatagCode
public function tagsFromEntityWithDefaults(ContentEntityInterface $entity) {
return $this
->tagsFromEntity($entity) + $this
->defaultTagsFromEntity($entity);
}