function Messages::defineOptions

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

Overrides AreaPluginBase::defineOptions

File

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

Class

Messages
Provides an area for messages.

Namespace

Drupal\views\Plugin\views\area

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    // Set the default to TRUE so it shows on empty pages by default.
    $options['empty']['default'] = TRUE;
    return $options;
}

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