You are here

public function ArgumentPluginBase::getDefaultArgument 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::getDefaultArgument()

Get a default argument, if available.

1 call to ArgumentPluginBase::getDefaultArgument()
Date::getDefaultArgument in core/modules/views/src/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 core/modules/views/src/Plugin/views/argument/Date.php
Set the empty argument value to the current date, formatted appropriately for this argument.

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 791
Contains \Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

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

Namespace

Drupal\views\Plugin\views\argument

Code

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