W3cubDocs

/Drupal 8

public function ConfigManagerInterface::getConfigEntitiesToChangeOnDependencyRemoval

public ConfigManagerInterface::getConfigEntitiesToChangeOnDependencyRemoval($type, array $names, $dry_run = TRUE)

Lists which config entities to update and delete on removal of a dependency.

Parameters

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 should be a list of module names or theme names. In the case of 'config' or 'content' it should be a list of configuration dependency names.

bool $dry_run: If set to FALSE the entities returned in the list of updates will be modified. In order to make the changes the caller needs to save them. If set to TRUE the entities returned will not be modified.

Return value

array An array with the keys: 'update', 'delete' and 'unchanged'. The value of each is a list of configuration entities that need to have that action applied when the supplied dependencies are removed. Updates need to be processed before deletes. The order of the deletes is significant and must be processed in the returned order.

File

core/lib/Drupal/Core/Config/ConfigManagerInterface.php, line 157

Class

ConfigManagerInterface
Provides an interface for configuration manager.

Namespace

Drupal\Core\Config

Code

public function getConfigEntitiesToChangeOnDependencyRemoval($type, array $names, $dry_run = TRUE);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigManagerInterface.php/function/ConfigManagerInterface::getConfigEntitiesToChangeOnDependencyRemoval/8.1.x