public static function EntityReferenceFieldSerializer::getSubscribedEvents in Acquia Content Hub 8.2
1 method overrides EntityReferenceFieldSerializer::getSubscribedEvents()
- EntityReferenceImageFieldSerializer::getSubscribedEvents in src/
EventSubscriber/ SerializeContentField/ EntityReferenceImageFieldSerializer.php - Returns an array of event names this subscriber wants to listen to.
File
- src/
EventSubscriber/ SerializeContentField/ EntityReferenceFieldSerializer.php, line 28
Class
- EntityReferenceFieldSerializer
- Subscribes to entity field serialization to handle entity references.
Namespace
Drupal\acquia_contenthub\EventSubscriber\SerializeContentFieldCode
public static function getSubscribedEvents() {
$events[AcquiaContentHubEvents::SERIALIZE_CONTENT_ENTITY_FIELD][] = [
'onSerializeContentField',
100,
];
return $events;
}