You are here

public function CalculateEntityDependenciesEvent::setDependencies in Dependency Calculation 8

Add a group of dependencies to this wrapper.

Parameters

\Drupal\depcalc\DependentEntityWrapperInterface ...$dependencies: The dependencies to add to this wrapper.

File

src/Event/CalculateEntityDependenciesEvent.php, line 90

Class

CalculateEntityDependenciesEvent
The event dispatched to calculate dependencies.

Namespace

Drupal\depcalc\Event

Code

public function setDependencies(DependentEntityWrapperInterface ...$dependencies) {
  foreach ($dependencies as $key => $dependency) {
    $this
      ->addDependency($dependency);
  }
}