public function BlockFieldSelectionManager::getOptions in Block field 8
Loads all definitions and returns key => value array.
Return value
array Array of options from definitions.
File
- src/
BlockFieldSelectionManager.php, line 39
Class
- BlockFieldSelectionManager
- Provides the Block field selection plugin manager.
Namespace
Drupal\block_fieldCode
public function getOptions() {
$definitions = $this
->getDefinitions();
$options = [];
foreach ($definitions as $plugin_id => $definition) {
$options[$plugin_id] = $definition['label'];
}
return $options;
}