function View::getInfo

Same name in other branches
  1. 9 core/modules/views/src/Element/View.php \Drupal\views\Element\View::getInfo()
  2. 10 core/modules/views/src/Element/View.php \Drupal\views\Element\View::getInfo()
  3. 11.x core/modules/views/src/Element/View.php \Drupal\views\Element\View::getInfo()

Overrides ElementInterface::getInfo

File

core/modules/views/src/Element/View.php, line 18

Class

View
Provides a render element to display a view.

Namespace

Drupal\views\Element

Code

public function getInfo() {
    $class = get_class($this);
    return [
        '#pre_render' => [
            [
                $class,
                'preRenderViewElement',
            ],
        ],
        '#name' => NULL,
        '#display_id' => 'default',
        '#arguments' => [],
        '#embed' => TRUE,
        '#cache' => [],
    ];
}

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