1 views_handler_field_contextual_links.inc views_handler_field_contextual_links::pre_render(&$values)

Run before any fields are rendered.

This gives the handlers some time to set up before any handler has been rendered.

Parameters

$values: An array of all objects returned from the query.

Overrides views_handler_field::pre_render

File

core/modules/views/handlers/views_handler_field_contextual_links.inc, line 25
Definition of views_handler_field_contextual_links.

Class

views_handler_field_contextual_links
Provides a handler that adds contextual links.

Code

function pre_render(&$values) {
  // Add a row plugin css class for the contextual link.
  $class = 'contextual-links-region';
  if (!empty($this->view->style_plugin->options['row_class'])) {
    $this->view->style_plugin->options['row_class'] .= " $class";
  }
  else {
    $this->view->style_plugin->options['row_class'] = $class;
  }
}