You are here

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

File

src/EventSubscriber/CdfAttributes/HashCdfAttribute.php, line 19

Class

HashCdfAttribute
Calculates a hash value of the entity and stores it as an attribute.

Namespace

Drupal\acquia_contenthub\EventSubscriber\CdfAttributes

Code

public static function getSubscribedEvents() {
  $events[AcquiaContentHubEvents::POPULATE_CDF_ATTRIBUTES][] = [
    'onPopulateAttributes',
    100,
  ];
  $events[AcquiaContentHubEvents::BUILD_CLIENT_CDF][] = [
    'onBuildClientCdf',
    -100,
  ];
  return $events;
}