X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FMetatagManagerInterface.php;h=4be259e0fb2749c7c94c298aa2935f7c7c21d9f5;hp=03aaa2f472253c3228f2a614b731c78f7147b54b;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/web/modules/contrib/metatag/src/MetatagManagerInterface.php b/web/modules/contrib/metatag/src/MetatagManagerInterface.php index 03aaa2f47..4be259e0f 100644 --- a/web/modules/contrib/metatag/src/MetatagManagerInterface.php +++ b/web/modules/contrib/metatag/src/MetatagManagerInterface.php @@ -3,6 +3,7 @@ namespace Drupal\metatag; use Drupal\Core\Entity\ContentEntityInterface; +use Drupal\views\ViewEntityInterface; /** * Class MetatagManager. @@ -22,6 +23,30 @@ interface MetatagManagerInterface { */ public function tagsFromEntity(ContentEntityInterface $entity); + /** + * Extracts all tags of a given entity, and combines them with sitewide, + * per-entity-type, and per-bundle defaults. + * + * @param \Drupal\Core\Entity\ContentEntityInterface $entity + * The content entity to extract metatags from. + * + * @return array + * Array of metatags. + */ + public function tagsFromEntityWithDefaults(ContentEntityInterface $entity); + + /** + * Extracts all appropriate default tags for an entity, from sitewide, + * per-entity-type, and per-bundle defaults. + * + * @param \Drupal\Core\Entity\ContentEntityInterface $entity + * The content entity for which to calculate defaults. + * + * @return array + * Array of metatags. + */ + public function defaultTagsFromEntity(ContentEntityInterface $entity); + /** * Returns an array of group plugin information sorted by weight. *