Fixed error: Call to private method in entity_usage_form_alter().
2 unresolved threads
Merge request reports
Activity
added 1 commit
85 85 */ 86 86 function entity_usage_form_alter(&$form, FormStateInterface $form_state, $form_id) { 87 87 $form_object = $form_state->getFormObject(); 88 if (!method_exists($form_object, 'getEntity')) { 88 if (!$form_object instanceof \Drupal\Core\Entity\EntityFormInterface) { - Comment on lines -88 to +88
changed this line in version 4 of the diff
added 38 commits
-
affdb650...aa6c643a - 36 commits from branch
project:8.x-2.x
- 1231dfb8 - Fixed error: Call to private method in entity_usage_form_alter().
- 9efb070d - Issue #3260251:Added instanceof EntityFormInterface.
-
affdb650...aa6c643a - 36 commits from branch
added 1 commit
107 108 if (!in_array($entity_type_id, $edit_entity_types) && !in_array($entity_type_id, $delete_entity_types)) { 108 109 return; 109 110 } 110 111 $is_edit_form = method_exists($form_object, 'getOperation') && $form_object->getOperation() === 'edit' && in_array($entity_type_id, $edit_entity_types); We now don't need this check either :)
changed this line in version 5 of the diff
Please register or sign in to reply