You are here

public function CurrentStore::getArgument in Commerce Core 8.2

Return the default argument.

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

Overrides ArgumentDefaultPluginBase::getArgument

File

modules/store/src/Plugin/views/argument_default/CurrentStore.php, line 64

Class

CurrentStore
Default argument plugin for the current store.

Namespace

Drupal\commerce_store\Plugin\views\argument_default

Code

public function getArgument() {
  return $this->currentStore
    ->getStore()
    ->id();
}