Skip to content

Remove the start of string regex limitation, so it can match the final part of...

Remove the start of string regex limitation, so it can match the final part of entity.entity_tasks:entity.commerce_product.canonical and ignore the preffix entity.entity_tasks

If this regex change accidentally matches something wrong, it should be safe since it will be discarted when the entity type id is validated.

// Skip as we cannot retrieve the entity if there is no entity id.
if (!isset($parameters[$entity_type_id]) || !is_numeric($parameters[$entity_type_id])) {
  return;
}

Closes #3344584

Merge request reports

Loading