public function MetatagManagerInterface::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.
1 method overrides MetatagManagerInterface::tagsFromEntityWithDefaults()
- MetatagManager::tagsFromEntityWithDefaults in src/
MetatagManager.php - Extracts all tags of a given entity.
File
- src/
MetatagManagerInterface.php, line 36
Class
- MetatagManagerInterface
- Class MetatagManager.
Namespace
Drupal\metatagCode
public function tagsFromEntityWithDefaults(ContentEntityInterface $entity);