protected DependencyTrait::addDependencies(array $dependencies)
Adds multiple dependencies.
array $dependencies.: An array of dependencies keyed by the type of dependency. One example:
array( 'module' => array( 'node', 'field', 'image', ), );
\Drupal\Core\Entity\DependencyTrait::addDependency
protected function addDependencies(array $dependencies) { foreach ($dependencies as $dependency_type => $list) { foreach ($list as $name) { $this->addDependency($dependency_type, $name); } } }
© 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!Entity!DependencyTrait.php/function/DependencyTrait::addDependencies/8.1.x