private function ViewsReferenceItem::getAllPluginList in Views Reference Field 8
Helper function to get all display ids.
1 call to ViewsReferenceItem::getAllPluginList()
- ViewsReferenceItem::fieldSettingsForm in src/
Plugin/ Field/ FieldType/ ViewsReferenceItem.php - Returns a form for the field-level settings.
File
- src/
Plugin/ Field/ FieldType/ ViewsReferenceItem.php, line 199
Class
- ViewsReferenceItem
- Defines the 'viewsreference' entity field type.
Namespace
Drupal\viewsreference\Plugin\Field\FieldTypeCode
private function getAllPluginList() {
$types = Views::pluginList();
$options = [];
foreach ($types as $key => $type) {
if ($type['type'] == 'display') {
$options[str_replace('display:', '', $key)] = $type['title']
->render();
}
}
return $options;
}