public ConfigDependencyManager::updateData($name, array $dependencies)
Updates one of the lightweight ConfigEntityDependency objects.
Parameters
$name: The configuration dependency name.
array $dependencies: The configuration dependencies. The array is structured like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | array ( 'config' => array ( // An array of configuration entity object names. ), 'content' => array ( // An array of content entity configuration dependency names. The default // format is "ENTITY_TYPE_ID:BUNDLE:UUID". ), 'module' => array ( // An array of module names. ), 'theme' => array ( // An array of theme names. ), ); |
Return value
$this
File
- core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 378
Class
- ConfigDependencyManager
- Provides a class to discover configuration entity dependencies.
Namespace
Drupal\Core\Config\Entity
Code
1 2 3 4 5 | public function updateData( $name , array $dependencies ) { $this ->graph = NULL; $this ->data[ $name ] = new ConfigEntityDependency( $name , [ 'dependencies' => $dependencies ]); return $this ; } |
Please login to continue.