Skip to content

Commit 2941d08

Browse files
committed
Issue #2901230 followup: Rename the ActiveStore views plugin to CurrentStore.
1 parent 1303909 commit 2941d08

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

modules/store/src/Plugin/views/argument_default/ActiveStore.php renamed to modules/store/src/Plugin/views/argument_default/CurrentStore.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
use Symfony\Component\DependencyInjection\ContainerInterface;
1010

1111
/**
12-
* Default argument plugin for the active store.
12+
* Default argument plugin for the current store.
13+
*
14+
* Note: The plugin ID is 'active_store' instead of 'current_store' for
15+
* backwards-compatibility reasons.
1316
*
1417
* @ViewsArgumentDefault(
1518
* id = "active_store",
16-
* title = @Translation("Store ID from active store")
19+
* title = @Translation("Store ID from the current store")
1720
* )
1821
*/
19-
class ActiveStore extends ArgumentDefaultPluginBase implements CacheableDependencyInterface {
22+
class CurrentStore extends ArgumentDefaultPluginBase implements CacheableDependencyInterface {
2023

2124
/**
2225
* The current store.
@@ -26,7 +29,7 @@ class ActiveStore extends ArgumentDefaultPluginBase implements CacheableDependen
2629
protected $currentStore;
2730

2831
/**
29-
* Constructs a PluginBase object.
32+
* Constructs a new CurrentStore object.
3033
*
3134
* @param array $configuration
3235
* A configuration array containing information about the plugin instance.

0 commit comments

Comments
 (0)