public function CurrentStore::__construct in Commerce Core 8.2
Same name in this branch
- 8.2 modules/store/src/CurrentStore.php \Drupal\commerce_store\CurrentStore::__construct()
- 8.2 modules/store/src/Plugin/views/argument_default/CurrentStore.php \Drupal\commerce_store\Plugin\views\argument_default\CurrentStore::__construct()
Constructs a new CurrentStore object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.
Overrides PluginBase::__construct
File
- modules/
store/ src/ Plugin/ views/ argument_default/ CurrentStore.php, line 43
Class
- CurrentStore
- Default argument plugin for the current store.
Namespace
Drupal\commerce_store\Plugin\views\argument_defaultCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, CurrentStoreInterface $current_store) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentStore = $current_store;
}