You are here

public function EntityConstraintViolationList::getEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php \Drupal\Core\Entity\EntityConstraintViolationList::getEntity()

The entity which has been validated.

Return value

\Drupal\Core\Entity\FieldableEntityInterface The entity object.

Overrides EntityConstraintViolationListInterface::getEntity

File

core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 184

Class

EntityConstraintViolationList
Implements an entity constraint violation list.

Namespace

Drupal\Core\Entity

Code

public function getEntity() {
  return $this->entity;
}