You are here

function domain_source_entity_form_display_insert in Domain Access 8

Implements hook_ENTITY_TYPE_insert().

In some cases, form display modes are not set when the node type is created. be sure to update our field definitions on creation of form_display for node types.

File

domain_source/domain_source.module, line 96
Domain-based path rewrites for content.

Code

function domain_source_entity_form_display_insert(EntityInterface $entity) {
  if (!$entity
    ->isSyncing() && $entity
    ->getTargetEntityTypeId() == 'node' && ($bundle = $entity
    ->getTargetBundle())) {
    domain_source_confirm_fields('node', $bundle);
  }
}