You are here

protected function RegisterSerializationClassesCompilerPass::normalizerBcSettingIsEnabled in Drupal 8

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\serialization

Code

protected function normalizerBcSettingIsEnabled($key, $config_name) {
  $settings = BootstrapConfigStorageFactory::get()
    ->read($config_name);
  return !empty($settings[$key]);
}