public function State::defaultConfiguration in Key 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides KeyPluginBase::defaultConfiguration
File
- tests/
modules/ key_test/ src/ Plugin/ KeyProvider/ State.php, line 51
Class
- State
- Defines a key provider that stores in memory.
Namespace
Drupal\key_test\Plugin\KeyProviderCode
public function defaultConfiguration() {
return parent::defaultConfiguration() + [
'state_key' => '',
];
}