Commit 935fdb62 authored by gbyte.co's avatar gbyte.co

Issue #3006657 by slasher13: Generation failure on deleted entities

parent 4e9cf0be
......@@ -144,6 +144,8 @@ class EntityMenuLinkContentUrlGenerator extends UrlGeneratorBase {
/**
* @inheritdoc
*
* @todo Check if menu link has not been deleted after the queue has been built.
*/
protected function processDataSet($data_set) {
......
......@@ -161,7 +161,9 @@ class EntityUrlGenerator extends UrlGeneratorBase {
* @inheritdoc
*/
protected function processDataSet($data_set) {
$entity = $this->entityTypeManager->getStorage($data_set['entity_type'])->load($data_set['id']);
if (empty($entity = $this->entityTypeManager->getStorage($data_set['entity_type'])->load($data_set['id']))) {
return FALSE;
}
$entity_id = $entity->id();
$entity_type_name = $entity->getEntityTypeId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment