You are here

public function SectionComponentDependenciesEvent::addEntityDependency in Dependency Calculation 8

Adds an entity as dependency.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

File

src/Event/SectionComponentDependenciesEvent.php, line 81

Class

SectionComponentDependenciesEvent
The SectionComponentDependenciesEvent event.

Namespace

Drupal\depcalc\Event

Code

public function addEntityDependency(EntityInterface $entity) {
  $this->entityDependencies[] = $entity;
}