function domain_access_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_access/
domain_access.module, line 504 - Domain-based access control for content.
Code
function domain_access_entity_form_display_insert(EntityInterface $entity) {
if (!$entity
->isSyncing() && $entity
->getTargetEntityTypeId() == 'node' && ($bundle = $entity
->getTargetBundle())) {
domain_access_confirm_fields('node', $bundle);
}
}