You are here

public static function EntityReferenceImageFieldSerializer::getSubscribedEvents in Acquia Content Hub 8.2

Overrides EntityReferenceFieldSerializer::getSubscribedEvents

File

src/EventSubscriber/SerializeContentField/EntityReferenceImageFieldSerializer.php, line 24

Class

EntityReferenceImageFieldSerializer
Subscribes to entity field serialization to handle entity references.

Namespace

Drupal\acquia_contenthub\EventSubscriber\SerializeContentField

Code

public static function getSubscribedEvents() {
  $events[AcquiaContentHubEvents::SERIALIZE_CONTENT_ENTITY_FIELD][] = [
    'onSerializeContentField',
    98,
  ];
  return $events;
}