protected function FormManglerService::loadBehaviorOptions in Rabbit Hole 8
Same name and namespace in other branches
- 2.x 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;
}