You are here

public function DependentEntityWrapperInterface::addDependency in Dependency Calculation 8

Document a new dependency for this entity.

Parameters

\Drupal\depcalc\DependentEntityWrapperInterface $dependency: The dependency to add.

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

bool $direct_child: Whether given wrapper is a direct child.

1 method overrides DependentEntityWrapperInterface::addDependency()
DependentEntityWrapper::addDependency in src/DependentEntityWrapper.php
Document a new dependency for this entity.

File

src/DependentEntityWrapperInterface.php, line 78

Class

DependentEntityWrapperInterface
Interface DependentEntityWrapperInterface.

Namespace

Drupal\depcalc

Code

public function addDependency(DependentEntityWrapperInterface $dependency, DependencyStack $stack, bool $direct_child = TRUE);