You are here

protected function Messages::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/area/Messages.php \Drupal\views\Plugin\views\area\Messages::defineOptions()
  2. 9 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;
}