/** * Overrides Drupal\configuration\Config\Configuration::findDependencies(). */ public function findDependencies() { list($entity_type, $field_name, $bundle_name) = explode('.', $this->getIdentifier()); $supported_handler = FALSE; if ($entity_type == 'node') { $parent_config = ConfigurationManagement::createConfigurationInstance('content_type.' . $bundle_name); $this->addToDependencies($parent_config); } elseif ($entity_type == 'vocabulary') { $parent_config = ConfigurationManagement::createConfigurationInstance('vocabulary.' . $bundle_name); $this->addToDependencies($parent_config); } parent::findDependencies(); }
/** * Overrides Drupal\configuration\Config\Configuration::findDependencies(). */ public function findDependencies() { $format = $this->getIdentifier(); $formats = filter_formats(); if (isset($formats[$format])) { $filter_format = ConfigurationManagement::createConfigurationInstance('text_format.' . $format); $this->addToDependencies($filter_format); } parent::findDependencies(); }