ConfigDependencyManager

Provides a class to discover configuration entity dependencies. Configuration entities can depend on modules, themes and other configuration entities. The dependency system is used during configuration installation, uninstallation, and synchronization to ensure that configuration entities are handled in the correct order. For example, node types are created before their fields, and both are created before the view display configuration. The configuration dependency value is structured like this

ConfigDependencyDeleteFormTrait::t

abstract protected ConfigDependencyDeleteFormTrait::t($string, array $args = array(), array $options = array()) Translates a string to the current language or to a given language. Provided by \Drupal\Core\StringTranslation\StringTranslationTrait. Overrides StringTranslationTrait::t File core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php, line 20 Class ConfigDependencyDeleteFormTrait Lists affected configuration entities by a dependency removal. Namespace Drupal\Core\

ConfigDependencyDeleteFormTrait::addDependencyListsToForm

protected ConfigDependencyDeleteFormTrait::addDependencyListsToForm(array &$form, $type, array $names, ConfigManagerInterface $config_manager, EntityManagerInterface $entity_manager) Adds form elements to list affected configuration entities. Parameters array $form: The form array to add elements to. string $type: The type of dependency being checked. Either 'module', 'theme', 'config' or 'content'. array $names: The specific names to check. If $type equals 'module' or 'theme' then it shou

ConfigDependencyDeleteFormTrait

Lists affected configuration entities by a dependency removal. This trait relies on the StringTranslationTrait. Hierarchy trait \Drupal\Core\Config\Entity\ConfigDependencyDeleteFormTrait File core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php, line 13 Namespace Drupal\Core\Config\Entity Members Name Modifiers Type Description ConfigDependencyDeleteFormTrait::addDependencyListsToForm protected function Adds form elements to list affected configuration

ConfigDependencies::__construct

public ConfigDependencies::__construct(array $format_providers, array $auth_providers) Creates a new ConfigDependencies instance. Parameters string[] $format_providers: The serialization format providers, keyed by format. string[] $auth_providers: The authentication providers, keyed by ID. File core/modules/rest/src/Entity/ConfigDependencies.php, line 38 Class ConfigDependencies Calculates rest resource config dependencies. Namespace Drupal\rest\Entity Code public function __construct

ConfigDependencies::onDependencyRemovalForResourceGranularity

protected ConfigDependencies::onDependencyRemovalForResourceGranularity(RestResourceConfigInterface $rest_config, array $dependencies) Informs the entity that entities it depends on will be deleted. Parameters \Drupal\rest\RestResourceConfigInterface $rest_config: The rest configuration. array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme. Return value bool TRUE if the entity has been changed

ConfigDependencies::onDependencyRemovalForMethodGranularity

protected ConfigDependencies::onDependencyRemovalForMethodGranularity(RestResourceConfigInterface $rest_config, array $dependencies) Informs the entity that entities it depends on will be deleted. Parameters \Drupal\rest\RestResourceConfigInterface $rest_config: The rest configuration. array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme. Return value bool TRUE if the entity has been changed as

ConfigDependencies::onDependencyRemoval

public ConfigDependencies::onDependencyRemoval(RestResourceConfigInterface $rest_config, array $dependencies) Informs the entity that entities it depends on will be deleted. Parameters \Drupal\rest\RestResourceConfigInterface $rest_config: The rest configuration. array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme. Return value bool TRUE if the entity has been changed as a result, FALSE if not

ConfigDependencies::create

public static ConfigDependencies::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servi

ConfigDependencies::calculateDependencies

public ConfigDependencies::calculateDependencies(RestResourceConfigInterface $rest_config) Calculates dependencies of a specific rest resource configuration. This function returns dependencies in a non-sorted, non-unique manner. It is therefore the caller's responsibility to sort and remove duplicates from the result prior to saving it with the configuration or otherwise using it in a way that requires that. For example, \Drupal\rest\Entity\RestResourceConfig::calculateDependencies() does this