1919 * @see \Drupal\entity_embed\Annotation\EntityEmbedDisplay
2020 * @see \Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayInterface
2121 */
22- class EntityEmbedDisplayManager extends DefaultPluginManager {
22+ class EntityEmbedDisplayManager extends DefaultPluginManager implements EntityEmbedDisplayManagerInterface {
2323
2424 /**
2525 * Constructs a new class instance.
@@ -52,16 +52,7 @@ public function processDefinition(&$definition, $plugin_id) {
5252 }
5353
5454 /**
55- * Determines plugins whose constraints are satisfied by a set of contexts.
56- *
57- * @param array $contexts
58- * An array of contexts.
59- *
60- * @return array
61- * An array of plugin definitions.
62- *
63- * @todo At some point convert this to use ContextAwarePluginManagerTrait
64- * @see https://drupal.org/node/2277981
55+ * @{inheritdoc}
6556 */
6657 public function getDefinitionsForContexts (array $ contexts = array ()) {
6758 $ definitions = $ this ->getDefinitions ();
@@ -83,13 +74,7 @@ public function getDefinitionsForContexts(array $contexts = array()) {
8374 }
8475
8576 /**
86- * Provides a list of plugins that can be used for a certain entity.
87- *
88- * @param \Drupal\Core\Entity\EntityInterface $entity
89- * An entity object.
90- *
91- * @return array
92- * An array of valid plugin labels, keyed by plugin ID.
77+ * @{inheritdoc}
9378 */
9479 public function getDefinitionOptionsForEntity (EntityInterface $ entity ) {
9580 $ definitions = $ this ->getDefinitionsForContexts (array ('entity ' => $ entity ));
@@ -99,13 +84,7 @@ public function getDefinitionOptionsForEntity(EntityInterface $entity) {
9984 }
10085
10186 /**
102- * Provides a list of plugins that can be used for a certain entity type.
103- *
104- * @param string $entity_type
105- * The entity type id.
106- *
107- * @return array
108- * An array of valid plugin labels, keyed by plugin ID.
87+ * @{inheritdoc}
10988 */
11089 public function getDefinitionOptionsForEntityType ($ entity_type ) {
11190 $ definitions = $ this ->getDefinitionsForContexts (array ('entity_type ' => $ entity_type ));
0 commit comments