function RegisterSerializationClassesCompilerPass::normalizerBcSettingIsEnabled
Returns whether a normalizer BC setting is disabled or not.
Parameters
string $key:
Return value
bool
1 call to RegisterSerializationClassesCompilerPass::normalizerBcSettingIsEnabled()
- RegisterSerializationClassesCompilerPass::process in core/
modules/ serialization/ src/ RegisterSerializationClassesCompilerPass.php - Adds services to the Serializer.
File
-
core/
modules/ serialization/ src/ RegisterSerializationClassesCompilerPass.php, line 76
Class
- RegisterSerializationClassesCompilerPass
- Adds services tagged 'normalizer' and 'encoder' to the Serializer.
Namespace
Drupal\serializationCode
protected function normalizerBcSettingIsEnabled($key, $config_name) {
$settings = BootstrapConfigStorageFactory::get()->read($config_name);
return !empty($settings[$key]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.