You are here

public function CurrentContext::getArgument in Config Pages 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/argument_default/CurrentContext.php \Drupal\config_pages\Plugin\views\argument_default\CurrentContext::getArgument()

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides ArgumentDefaultPluginBase::getArgument

File

src/Plugin/views/argument_default/CurrentContext.php, line 57

Class

CurrentContext
Default argument plugin to use the current context value.

Namespace

Drupal\config_pages\Plugin\views\argument_default

Code

public function getArgument() {
  $type = ConfigPagesType::load($this->options['config_page_type']);
  $context = $type
    ->getContextData();
  return $context;
}