public function ArgumentPluginBase::getDefaultArgument

Get a default argument, if available.

1 call to ArgumentPluginBase::getDefaultArgument()
Date::getDefaultArgument in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php
Set the empty argument value to the current date, formatted appropriately for this argument.
1 method overrides ArgumentPluginBase::getDefaultArgument()
Date::getDefaultArgument in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php
Set the empty argument value to the current date, formatted appropriately for this argument.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 744
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

public function getDefaultArgument() {
  $plugin = $this
    ->getPlugin('argument_default');
  if ($plugin) {
    return $plugin
      ->getArgument();
  }
}