You are here

protected function PirateDayCacheabilityMetadataConfigOverride::isCacheabilityMetadataApplicable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/tests/config_override_test/src/PirateDayCacheabilityMetadataConfigOverride.php \Drupal\config_override_test\PirateDayCacheabilityMetadataConfigOverride::isCacheabilityMetadataApplicable()

Returns whether or not our overrides are potentially applicable.

Parameters

string $name: The name of the config object that is being constructed.

Return value

bool TRUE if the merchant ship will be boarded. FALSE if we drink rum instead.

File

core/modules/config/tests/config_override_test/src/PirateDayCacheabilityMetadataConfigOverride.php, line 78
Contains \Drupal\config_override_test\PirateDayCacheabilityMetadataConfigOverride.

Class

PirateDayCacheabilityMetadataConfigOverride
Test implementation of a config override that provides cacheability metadata.

Namespace

Drupal\config_override_test

Code

protected function isCacheabilityMetadataApplicable($name) {
  return in_array($name, [
    'system.theme',
    'block.block.call_to_action',
  ]);
}