You are here

public function CalculateEntityDependenciesEvent::__construct in Dependency Calculation 8

CalculateEntityDependenciesEvent constructor.

Parameters

\Drupal\depcalc\DependentEntityWrapperInterface $wrapper: The entity for which we are calculating dependencies.

\Drupal\depcalc\DependencyStack $stack: The dependency stack.

File

src/Event/CalculateEntityDependenciesEvent.php, line 36

Class

CalculateEntityDependenciesEvent
The event dispatched to calculate dependencies.

Namespace

Drupal\depcalc\Event

Code

public function __construct(DependentEntityWrapperInterface $wrapper, DependencyStack $stack) {
  $this->wrapper = $wrapper;
  $this->stack = $stack;
}