You are here

protected function ViewsBulkOperationsBulkForm::defineOptions in Views Bulk Operations (VBO) 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::defineOptions()
  2. 8.2 src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::defineOptions()
  3. 4.0.x src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides FieldPluginBase::defineOptions

File

src/Plugin/views/field/ViewsBulkOperationsBulkForm.php, line 227

Class

ViewsBulkOperationsBulkForm
Defines the Views Bulk Operations field plugin.

Namespace

Drupal\views_bulk_operations\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['batch'] = [
    'default' => TRUE,
  ];
  $options['batch_size'] = [
    'default' => 10,
  ];
  $options['form_step'] = [
    'default' => TRUE,
  ];
  $options['buttons'] = [
    'default' => FALSE,
  ];
  $options['action_title'] = [
    'default' => $this
      ->t('Action'),
  ];
  $options['selected_actions'] = [
    'default' => [],
  ];
  $options['preconfiguration'] = [
    'default' => [],
  ];
  return $options;
}