public function BulkForm::pre_render

Overrides \Drupal\views\Plugin\views\Plugin\field\FieldPluginBase::pre_render().

Overrides FieldPluginBase::pre_render

File

drupal/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php, line 33
Contains \Drupal\action\Plugin\views\field\BulkForm.

Class

BulkForm
Defines a simple bulk operation form element.

Namespace

Drupal\action\Plugin\views\field

Code

public function pre_render(&$values) {
  parent::pre_render($values);

  // If the view is using a table style, provide a placeholder for a
  // "select all" checkbox.
  if (!empty($this->view->style_plugin) && $this->view->style_plugin instanceof \Drupal\views\Plugin\views\style\Table) {

    // Add the tableselect css classes.
    $this->options['element_label_class'] .= 'select-all';

    // Hide the actual label of the field on the table header.
    $this->options['label'] = '';
  }
}