You are here

function ArgumentPluginBase::hasDefaultArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 783
Contains \Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

function hasDefaultArgument() {
  $info = $this
    ->defaultActions($this->options['default_action']);
  return !empty($info['has default argument']);
}