function ArgumentPluginBase::get_default_argument

Get a default argument, if available.

1 call to ArgumentPluginBase::get_default_argument()
Date::get_default_argument 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::get_default_argument()
Date::get_default_argument 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 740
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

function get_default_argument() {
  $plugin = $this
    ->get_plugin('argument_default');
  if ($plugin) {
    return $plugin
      ->get_argument();
  }
}