Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Mapping.php

function 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(),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal