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\EventCode
public function addEntityDependency(EntityInterface $entity) {
$this->entityDependencies[] = $entity;
}