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 (&quot;crm_core_individual_type&quot;) to generate a URL for route &quot;entity.crm_core_individual.add_form&quot;. in <em class="placeholder">Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;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-&gt;getInternalPathFromRoute(&#039;entity.crm_core_individual.add_form&#039;, Object, Array, Array) (Line: 293)
Drupal\Core\Routing\UrlGenerator-&gt;generateFromRoute(&#039;entity.crm_core_individual.add_form&#039;, Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator-&gt;generateFromRoute(&#039;entity.crm_core_individual.add_form&#039;, Array, Array, 1) (Line: 753)
Drupal\Core\Url-&gt;toString(1) (Line: 333)
Drupal\Core\Entity\Entity-&gt;Drupal\Core\Entity\{closure}(&#039;add-form&#039;)
array_filter(Array, Object) (Line: 339)
Drupal\Core\Entity\Entity-&gt;uriRelationships() (Line: 92)
menu_link_content_entity_predelete(Object)
call_user_func_array(&#039;menu_link_content_entity_predelete&#039;, Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler-&gt;invokeAll(&#039;entity_predelete&#039;, Array) (Line: 169)
Drupal\Core\Entity\EntityStorageBase-&gt;invokeHook(&#039;predelete&#039;, Object) (Line: 435)
Drupal\Core\Entity\ContentEntityStorageBase-&gt;invokeHook(&#039;predelete&#039;, Object) (Line: 359)
Drupal\Core\Entity\EntityStorageBase-&gt;delete(Array) (Line: 745)
Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;delete(Array) (Line: 385)
Drupal\Core\Entity\Entity-&gt;delete() (Line: 70)
Drupal\Core\Entity\ContentEntityDeleteForm-&gt;submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter-&gt;executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter-&gt;doSubmitForm(Array, Object) (Line: 585)

...

CommentFileSizeAuthor
#3 entity-2927051-3.patch903 bytesRoSk0
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RoSk0 created an issue. See original summary.

RoSk0’s picture

Issue summary: View changes
RoSk0’s picture

Title: Remove RevisionableContentEntityBase superseded by core » Re-use parent code in RevisionableContentEntityBase::urlRouteParameters()
Issue summary: View changes
FileSize
903 bytes
RoSk0’s picture

Assigned: RoSk0 » Unassigned
Status: Active » Needs review
tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Yup, makes sense.

  • bojanz committed 1528b7c on 8.x-1.x authored by RoSk0
    Issue #2927051 by RoSk0: Re-use parent code in...
bojanz’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.