function Messages::render

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

Overrides AreaPluginBase::render

File

core/modules/views/src/Plugin/views/area/Messages.php, line 27

Class

Messages
Provides an area for messages.

Namespace

Drupal\views\Plugin\views\area

Code

public function render($empty = FALSE) {
    if (!$empty || !empty($this->options['empty'])) {
        return [
            '#type' => 'status_messages',
        ];
    }
    return [];
}

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