public function CalculateEntityDependenciesEvent::getEntity in Dependency Calculation 8
Get the entity for which dependencies are being calculated.
Return value
\Drupal\Core\Entity\EntityInterface The entity.
File
- src/
Event/ CalculateEntityDependenciesEvent.php, line 57
Class
- CalculateEntityDependenciesEvent
- The event dispatched to calculate dependencies.
Namespace
Drupal\depcalc\EventCode
public function getEntity() {
return $this->wrapper
->getEntity();
}