function Mapping::render

Overrides Drupal\views\Plugin\views\style\StylePluginBase::render().

Provides the mapping definition as an available variable.

Overrides StylePluginBase::render

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/Mapping.php, line 134
Definition of Drupal\views\Plugin\views\style\Mapping.

Class

Mapping
Allows fields to be mapped to specific use cases.

Namespace

Drupal\views\Plugin\views\style

Code

function render() {
  return array(
    '#theme' => $this
      ->themeFunctions(),
    '#view' => $this->view,
    '#options' => $this->options,
    '#rows' => $this->view->result,
    '#mapping' => $this
      ->defineMapping(),
  );
}