/** * Convenience method, adds the configuration object's cache tag. * * @param \Drupal\Core\Config\ConfigBase $configuration * The configuration object whose cache tag to set on the access result. * * @return $this */ public function cacheUntilConfigurationChanges(ConfigBase $configuration) { $this->addCacheTags($configuration->getCacheTags()); return $this; }