Yaffs site version 1.1
[yaffs-website] / web / modules / contrib / metatag / src / MetatagManagerInterface.php
index 03aaa2f472253c3228f2a614b731c78f7147b54b..4be259e0fb2749c7c94c298aa2935f7c7c21d9f5 100644 (file)
@@ -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.
    *