You are here

public function MetatagManagerInterface::tagsFromEntity in Metatag 8

Extracts all tags of a given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity to extract meta tags from.

Return value

array Array of metatags.

1 method overrides MetatagManagerInterface::tagsFromEntity()
MetatagManager::tagsFromEntity in src/MetatagManager.php
Extracts all tags of a given entity.

File

src/MetatagManagerInterface.php, line 23

Class

MetatagManagerInterface
Class MetatagManager.

Namespace

Drupal\metatag

Code

public function tagsFromEntity(ContentEntityInterface $entity);