public function BulkFormBase::pre_render

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

Overrides FieldPluginBase::pre_render

File

drupal/core/modules/system/lib/Drupal/system/Plugin/views/field/BulkFormBase.php, line 62
Contains \Drupal\system\Plugin\views\field\BulkFormBase.

Class

BulkFormBase
Defines a generic bulk operation form element.

Namespace

Drupal\system\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 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'] = '';
  }
}