['default' => 'pirate']]; } if (in_array('block.block.call_to_action', $names)) { $overrides = $overrides + [ 'block.block.call_to_action' => [ 'settings' => ['label' => 'Draw yer cutlasses!'], ], ]; } } return $overrides; } /** * {@inheritdoc} */ public function getCacheSuffix() { return 'PirateDayConfigOverrider'; } /** * {@inheritdoc} */ public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) { return NULL; } /** * {@inheritdoc} */ public function getCacheableMetadata($name) { $metadata = new CacheableMetadata(); $metadata ->setCacheContexts(['pirate_day']) ->setCacheTags(['pirate-day-tag']) ->setCacheMaxAge(PirateDayCacheContext::PIRATE_DAY_MAX_AGE); return $metadata; } }