protected function ConfigNormalizerBase::isActiveStorageContext in Configuration Normalizer 8
Same name and namespace in other branches
- 2.0.x src/Plugin/ConfigNormalizerBase.php \Drupal\config_normalizer\Plugin\ConfigNormalizerBase::isActiveStorageContext()
Determines whether the context reference storage is the active storage.
Parameters
array $context: An array of key-value pairs to pass additional context when needed.
Return value
bool TRUE if the context normalization mode is default. Otherwise, FALSE.
1 call to ConfigNormalizerBase::isActiveStorageContext()
- ConfigNormalizerActive::normalize in src/
Plugin/ ConfigNormalizer/ ConfigNormalizerActive.php - Normalizes config for comparison.
File
- src/
Plugin/ ConfigNormalizerBase.php, line 73
Class
- ConfigNormalizerBase
- Base class for Config normalizer plugins.
Namespace
Drupal\config_normalizer\PluginCode
protected function isActiveStorageContext(array $context) {
if (!empty($context['reference_storage_service']) && !empty($context['reference_storage_service']->_serviceId) && $context['reference_storage_service']->_serviceId === 'config.storage') {
return TRUE;
}
return FALSE;
}