You are here

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

File

src/EventSubscriber/SerializeContentField/LanguageFieldSerializer.php, line 19

Class

LanguageFieldSerializer
Subscribes to entity field serialization to handle language reference.

Namespace

Drupal\acquia_contenthub\EventSubscriber\SerializeContentField

Code

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