function Messages::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/area/Messages.php \Drupal\views\Plugin\views\area\Messages::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/area/Messages.php \Drupal\views\Plugin\views\area\Messages::defineOptions()
- 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 18
Class
- Messages
- Provides an area for messages.
Namespace
Drupal\views\Plugin\views\areaCode
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.