public function EntityServicePreferenceEvent::setEntity in Avatar Kit 8.2
Set the entity preferences are being set for.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity preferences are being set for.
Return value
$this Returns this event for chaining.
File
- src/
Event/ EntityServicePreferenceEvent.php, line 74
Class
- EntityServicePreferenceEvent
- Used to determine the preference order of avatar services for an entity.
Namespace
Drupal\avatars\EventCode
public function setEntity(EntityInterface $entity) : self {
$this->entity = $entity;
return $this;
}