You are here

public function ModifyEntityValues::buildPreConfigurationForm in Views Bulk Edit 8.2

File

src/Plugin/Action/ModifyEntityValues.php, line 140

Class

ModifyEntityValues
Modify entity field values.

Namespace

Drupal\views_bulk_edit\Plugin\Action

Code

public function buildPreConfigurationForm(array $form, array $values, FormStateInterface $form_state) {
  $form['get_bundles_from_results'] = [
    '#title' => $this
      ->t('Get entity bundles from results'),
    '#type' => 'checkbox',
    '#default_value' => isset($values['get_bundles_from_results']) ? $values['get_bundles_from_results'] : TRUE,
    '#description' => $this
      ->t('NOTE: If performance issues are observed when using "All results in this view" selector in case of large result sets, uncheck this and use a bundle filter (node type, taxonomy vocabulary etc.) on the view.'),
  ];
  return $form;
}