public function MetatagManagerInterface::defaultTagsFromEntity in Metatag 8
Extracts all appropriate default tags for an entity.
From sitewide, per-entity-type, and per-bundle defaults.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity for which to calculate defaults.
Return value
array Array of metatags.
1 method overrides MetatagManagerInterface::defaultTagsFromEntity()
- MetatagManager::defaultTagsFromEntity in src/
MetatagManager.php - Extracts all appropriate default tags for an entity.
File
- src/
MetatagManagerInterface.php, line 49
Class
- MetatagManagerInterface
- Class MetatagManager.
Namespace
Drupal\metatagCode
public function defaultTagsFromEntity(ContentEntityInterface $entity);