Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Re-use parent code in RevisionableContentEntityBase::urlRouteParameters() to handle bundle in link parameters correctly and avoid
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Entity\EntityStorageException</em>: Some mandatory parameters are missing ("crm_core_individual_type") to generate a URL for route "entity.crm_core_individual.add_form". in <em class="placeholder">Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete()</em> (line <em class="placeholder">753</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php</em>). <pre class="backtrace">Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute('entity.crm_core_individual.add_form', Object, Array, Array) (Line: 293)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.crm_core_individual.add_form', Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.crm_core_individual.add_form', Array, Array, 1) (Line: 753)
Drupal\Core\Url->toString(1) (Line: 333)
Drupal\Core\Entity\Entity->Drupal\Core\Entity\{closure}('add-form')
array_filter(Array, Object) (Line: 339)
Drupal\Core\Entity\Entity->uriRelationships() (Line: 92)
menu_link_content_entity_predelete(Object)
call_user_func_array('menu_link_content_entity_predelete', Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_predelete', Array) (Line: 169)
Drupal\Core\Entity\EntityStorageBase->invokeHook('predelete', Object) (Line: 435)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('predelete', Object) (Line: 359)
Drupal\Core\Entity\EntityStorageBase->delete(Array) (Line: 745)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete(Array) (Line: 385)
Drupal\Core\Entity\Entity->delete() (Line: 70)
Drupal\Core\Entity\ContentEntityDeleteForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
...
Comment | File | Size | Author |
---|---|---|---|
#3 | entity-2927051-3.patch | 903 bytes | RoSk0 |
|
Comments
Comment #2
RoSk0Comment #3
RoSk0Comment #4
RoSk0Comment #5
tstoecklerYup, makes sense.
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedThanks!