protected function EmbedViews::getAllDisplays in Views entity embed 8
Same name and namespace in other branches
- 2.0.x src/Plugin/EmbedType/EmbedViews.php \Drupal\views_entity_embed\Plugin\EmbedType\EmbedViews::getAllDisplays()
Method gets all displays as options list.
1 call to EmbedViews::getAllDisplays()
- EmbedViews::buildConfigurationForm in src/
Plugin/ EmbedType/ EmbedViews.php - Form constructor.
File
- src/
Plugin/ EmbedType/ EmbedViews.php, line 122
Class
- EmbedViews
- Viws embed type.
Namespace
Drupal\views_entity_embed\Plugin\EmbedTypeCode
protected function getAllDisplays() {
$displays = [];
// Get all display plugins which provides the type.
$display_plugins = Views::pluginManager('display')
->getDefinitions();
$plugin_ids = [];
foreach ($display_plugins as $id => $definition) {
$displays[$definition['class']] = $definition['title'];
}
return $displays;
}