function conflict_form_alter in Conflict 8.2
Implements hook_form_alter().
File
- ./
conflict.module, line 128 - The module that makes concurrent editing possible.
Code
function conflict_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form_object = $form_state
->getFormObject();
if (!$form_object instanceof EntityFormInterface) {
return;
}
conflict_prepare_entity_form($form, $form_state, $form_object
->getEntity());
}