eventbrite_one_way_sync-1.0.0/modules/eventbrite_one_way_sync_node/eventbrite_one_way_sync_node.module
modules/eventbrite_one_way_sync_node/eventbrite_one_way_sync_node.module
<?php
/**
* @file
* Runtime hooks.
*/
use Drupal\Core\Entity\EntityInterface;
use Drupal\eventbrite_one_way_sync_node\EventbriteOneWaySyncNodeInterface;
/**
* Quick access to the eventbrite_one_way_sync_node service.
*
* @return \Drupal\eventbrite_one_way_sync_node\EventbriteOneWaySyncNodeInterface
* The EventbriteOneWaySyncNode service.
*/
// @codingStandardsIgnoreStart
// PHP Lint wants this to be prefixed with the module name, but it _is_
// the same as the module name, so I consider this ok.
function eventbrite_one_way_sync_node() : EventbriteOneWaySyncNodeInterface {
// @codingStandardsIgnoreEnd
return \Drupal::service('eventbrite_one_way_sync_node');
}
/**
* Implements hook_entity_presave().
*/
function eventbrite_one_way_sync_node_entity_presave(EntityInterface $entity) {
\Drupal::service('eventbrite_one_way_sync_node.field_mapper')
->hookEntityPresave($entity);
}
