You are here

protected function NodeBulkForm::getBulkOptions in Lightning Workflow 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/views/field/NodeBulkForm.php \Drupal\lightning_workflow\Plugin\views\field\NodeBulkForm::getBulkOptions()
  2. 8.2 src/Plugin/views/field/NodeBulkForm.php \Drupal\lightning_workflow\Plugin\views\field\NodeBulkForm::getBulkOptions()

Returns the available operations for this form.

Parameters

bool $filtered: (optional) Whether to filter actions to selected actions.

Return value

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

Overrides BulkForm::getBulkOptions

File

src/Plugin/views/field/NodeBulkForm.php, line 20

Class

NodeBulkForm
Extends the node_bulk_form field plugin to disallow certain options.

Namespace

Drupal\lightning_workflow\Plugin\views\field

Code

protected function getBulkOptions($filtered = TRUE) {
  $options = parent::getBulkOptions($filtered);
  unset($options['node_publish_action'], $options['node_unpublish_action']);
  return $options;
}