function Mapping::render

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/style/Mapping.php \Drupal\views\Plugin\views\style\Mapping::render()
  2. 8.9.x core/modules/views/src/Plugin/views/style/Mapping.php \Drupal\views\Plugin\views\style\Mapping::render()
  3. 10 core/modules/views/src/Plugin/views/style/Mapping.php \Drupal\views\Plugin\views\style\Mapping::render()

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

Provides the mapping definition as an available variable.

Overrides StylePluginBase::render

File

core/modules/views/src/Plugin/views/style/Mapping.php, line 131

Class

Mapping
Allows fields to be mapped to specific use cases.

Namespace

Drupal\views\Plugin\views\style

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.