You are here

function tmgmt_content_entity_insert in Translation Management Tool 8

Implements hook_entity_insert().

File

sources/content/tmgmt_content.module, line 283
Source plugin for the Translation Management system that handles entities.

Code

function tmgmt_content_entity_insert(EntityInterface $entity) {
  if ($entity instanceof ContentEntityInterface && !$entity
    ->getEntityType()
    ->get('entity_revision_parent_type_field')) {
    tmgmt_content_create_continuous_job_items($entity);
  }
}