protected function EntityEmbedDisplayManager::filterExposedDefinitions in Entity Embed 8
Filters out plugins from definitions that should be hidden in the UI.
Parameters
array $definitions: The array of plugin definitions.
Return value
array Returns plugin definitions that should be displayed in the UI.
3 calls to EntityEmbedDisplayManager::filterExposedDefinitions()
- EntityEmbedDisplayManager::getDefinitionOptionsForContext in src/
EntityEmbedDisplay/ EntityEmbedDisplayManager.php - Gets definition options for context.
- EntityEmbedDisplayManager::getDefinitionOptionsForEntity in src/
EntityEmbedDisplay/ EntityEmbedDisplayManager.php - Gets definition options for entity.
- EntityEmbedDisplayManager::getDefinitionOptionsForEntityType in src/
EntityEmbedDisplay/ EntityEmbedDisplayManager.php - Gets definition options for entity type.
File
- src/
EntityEmbedDisplay/ EntityEmbedDisplayManager.php, line 146
Class
- EntityEmbedDisplayManager
- Provides an Entity Embed display plugin manager.
Namespace
Drupal\entity_embed\EntityEmbedDisplayCode
protected function filterExposedDefinitions(array $definitions) {
return array_filter($definitions, function ($definition) {
return empty($definition['no_ui']);
});
}