drupal_yext-8.x-1.0/drupal_yext.module
drupal_yext.module
<?php
/**
* @file
* Handy procedural wrapper code and potential hook implementations.
*/
use Drupal\drupal_yext\Yext\Yext;
use Drupal\Core\Entity\EntityInterface;
/**
* Wrapper around Yext::instance().
*/
function drupal_yext() : Yext {
return Yext::instance();
}
/**
* Implements hook_entity_presave().
*/
function drupal_yext_entity_presave(EntityInterface $entity) {
Yext::instance()->hookEntityPresave($entity);
}
/**
* Implements hook_requirements().
*/
function drupal_yext_requirements($phase) {
return Yext::instance()->hookRequirements($phase);
}
/**
* Handy wrapper around Yext::instance()->importSome().
*/
function drupal_yext_import_some() {
Yext::instance()->importSome();
}
