1 | <?php |
||
19 | class EntityEmbedDisplayManager extends DefaultPluginManager { |
||
20 | |||
21 | /** |
||
22 | * Constructs a new EntityEmbedDisplayManager. |
||
23 | * |
||
24 | * @param \Traversable $namespaces |
||
25 | * An object that implements \Traversable which contains the root paths |
||
26 | * keyed by the corresponding namespace to look for plugin implementations. |
||
27 | * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend |
||
28 | * Cache backend instance to use. |
||
29 | * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler |
||
30 | * The module handler to invoke the alter hook with. |
||
31 | */ |
||
32 | public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) { |
||
37 | |||
38 | /** |
||
39 | * Overrides DefaultPluginManager::processDefinition(). |
||
40 | */ |
||
41 | public function processDefinition(&$definition, $plugin_id) { |
||
50 | |||
51 | /** |
||
52 | * Determines plugins whose constraints are satisfied by a set of contexts. |
||
53 | * |
||
54 | * @param array $contexts |
||
55 | * An array of contexts. |
||
56 | * |
||
57 | * @return array |
||
58 | * An array of plugin definitions. |
||
59 | * |
||
60 | * @todo At some point convert this to use ContextAwarePluginManagerTrait |
||
61 | * |
||
62 | * @see https://drupal.org/node/2277981 |
||
63 | */ |
||
64 | public function getDefinitionsForContexts(array $contexts = array()) { |
||
84 | |||
85 | /** |
||
86 | * Gets definition options for entity. |
||
87 | * |
||
88 | * Provides a list of plugins that can be used for a certain entity and |
||
89 | * filters out plugins that should be hidden in the UI. |
||
90 | * |
||
91 | * @param \Drupal\Core\Entity\EntityInterface $entity |
||
92 | * An entity object. |
||
93 | * |
||
94 | * @return array |
||
95 | * An array of valid plugin labels, keyed by plugin ID. |
||
96 | */ |
||
97 | public function getDefinitionOptionsForEntity(EntityInterface $entity) { |
||
104 | |||
105 | /** |
||
106 | * Filters out plugins from definitions that should be hidden in the UI. |
||
107 | * |
||
108 | * @param array $definitions |
||
109 | * The array of plugin definitions. |
||
110 | * |
||
111 | * @return array |
||
112 | * Returns plugin definitions that should be displayed in the UI. |
||
113 | */ |
||
114 | protected function filterExposedDefinitions(array $definitions) { |
||
119 | |||
120 | /** |
||
121 | * Gets definition options for entity type. |
||
122 | * |
||
123 | * Provides a list of plugins that can be used for a certain entity type and |
||
124 | * filters out plugins that should be hidden in the UI. |
||
125 | * |
||
126 | * @param string $entity_type |
||
127 | * The entity type id. |
||
128 | * |
||
129 | * @return array |
||
130 | * An array of valid plugin labels, keyed by plugin ID. |
||
131 | */ |
||
132 | public function getDefinitionOptionsForEntityType($entity_type) { |
||
139 | |||
140 | } |
||
141 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.