public function DependentEntityWrapper::addDependencies in Dependency Calculation 8
Add dependencies of this entity.
Parameters
\Drupal\depcalc\DependencyStack $stack: The dependency stack.
\Drupal\depcalc\DependentEntityWrapperInterface ...$dependencies: Entities wrappers to add as a dependency.
Overrides DependentEntityWrapperInterface::addDependencies
1 call to DependentEntityWrapper::addDependencies()
- DependentEntityWrapper::addDependency in src/
DependentEntityWrapper.php - Document a new dependency for this entity.
File
- src/
DependentEntityWrapper.php, line 183
Class
- DependentEntityWrapper
- An entity wrapper class for finding and tracking dependencies of an entity.
Namespace
Drupal\depcalcCode
public function addDependencies(DependencyStack $stack, DependentEntityWrapperInterface ...$dependencies) {
foreach ($dependencies as $dependency) {
// This can't be added as a child because $dependencies holds
// all the dependencies for a given entity whether direct or not,
// so boolean set to false.
$this
->addDependency($dependency, $stack, FALSE);
}
}