protected function FormManglerService::loadBehaviorOptions in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 src/FormManglerService.php \Drupal\rabbit_hole\FormManglerService::loadBehaviorOptions()
Load an array of behaviour options from plugins.
Load an array of rabbit hole behavior options from plugins in the format option id => label.
Return value
array An array of behavior options
1 call to FormManglerService::loadBehaviorOptions()
- FormManglerService::addRabbitHoleOptionsToForm in src/
FormManglerService.php - Common functionality for adding rabbit hole options to forms.
File
- src/
FormManglerService.php, line 438
Class
- FormManglerService
- Provides necessary form alterations.
Namespace
Drupal\rabbit_holeCode
protected function loadBehaviorOptions() {
$action_options = [];
foreach ($this->rhBehaviorPluginManager
->getDefinitions() as $id => $def) {
$action_options[$id] = $def['label'];
}
return $action_options;
}