You are here

public function EntityServicePreferenceEvent::getEntity in Avatar Kit 8.2

Get the entity preferences are being set for.

Return value

\Drupal\Core\Entity\EntityInterface The entity preferences are being set for.

File

src/Event/EntityServicePreferenceEvent.php, line 61

Class

EntityServicePreferenceEvent
Used to determine the preference order of avatar services for an entity.

Namespace

Drupal\avatars\Event

Code

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