public function ArgumentPluginBase::hasDefaultArgument in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::hasDefaultArgument()
Determine if the argument is set to provide a default argument.
File
- core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 791
Class
- ArgumentPluginBase
- Base class for argument (contextual filter) handler plugins.
Namespace
Drupal\views\Plugin\views\argumentCode
public function hasDefaultArgument() {
$info = $this
->defaultActions($this->options['default_action']);
return !empty($info['has default argument']);
}