protected function NodeBulkForm::getBulkOptions in Lightning Workflow 8
Same name and namespace in other branches
- 8.3 src/Plugin/views/field/NodeBulkForm.php \Drupal\lightning_workflow\Plugin\views\field\NodeBulkForm::getBulkOptions()
- 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 15
Class
- NodeBulkForm
- Extends the node_bulk_form field plugin to disallow certain options.
Namespace
Drupal\lightning_workflow\Plugin\views\fieldCode
protected function getBulkOptions($filtered = TRUE) {
$options = parent::getBulkOptions($filtered);
unset($options['node_publish_action'], $options['node_unpublish_action']);
return $options;
}