You are here

public function EntityServicePreferenceEvent::setServices in Avatar Kit 8.2

Sets weights for avatar services.

Parameters

string[] $services: An array of weights keyed by avatar service entity ID's.

Return value

$this Returns this event for chaining.

File

src/Event/EntityServicePreferenceEvent.php, line 50

Class

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

Namespace

Drupal\avatars\Event

Code

public function setServices(array $services) : self {
  $this->services = $services;
  return $this;
}