Skip to content
Snippets Groups Projects
Commit f7d2f46f authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5234: adding hook to add validation to nodes for media

parent 83d5e8d0
No related branches found
No related tags found
1 merge request!184Feature/istwcms 5234 ebremner hero
......@@ -1044,3 +1044,14 @@ function uw_cfg_common_webform_build_access_denied_alter(array &$build, WebformI
];
}
}
/**
* Implements hook_entity_type_alter().
*
* @param array $entity_types
*/
function uw_cfg_common_entity_type_alter(array &$entity_types) {
// Add validation constraint to the node entity.
$entity_types['node']->addConstraint('UwMedia');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment