public function ArgumentPluginBase::hasDefaultArgument in Drupal 8
Same name and namespace in other branches
- 9 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']);
}