protected function BulkFormBase::getBulkOptions

Returns the available operations for this form.

Return value

array An associative array of operations, suitable for a select element.

1 call to BulkFormBase::getBulkOptions()
BulkFormBase::views_form in drupal/core/modules/system/lib/Drupal/system/Plugin/views/field/BulkFormBase.php
Form constructor for the bulk form.
1 method overrides BulkFormBase::getBulkOptions()
BulkForm::getBulkOptions in drupal/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php
Implements \Drupal\system\Plugin\views\field\BulkFormBase::getBulkOptions().

File

drupal/core/modules/system/lib/Drupal/system/Plugin/views/field/BulkFormBase.php, line 137
Contains \Drupal\system\Plugin\views\field\BulkFormBase.

Class

BulkFormBase
Defines a generic bulk operation form element.

Namespace

Drupal\system\Plugin\views\field

Code

protected function getBulkOptions() {
  return array_map(function ($action) {
    return $action
      ->label();
  }, $this->actions);
}