Skip to content
Snippets Groups Projects
Commit 6ffd52fd authored by Chris Burge's avatar Chris Burge Committed by Chris Burge
Browse files

Issue #3344356 by urvashi_vora, Chris Burge, vbouchet: Error during module uninstall

parent d95b34d1
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ function layout_builder_component_attributes_uninstall() {
// Only track the entity type if overrides are enabled.
foreach ($lb_entity_types as $entity_type_id) {
$entity_ids = \Drupal::entityQuery($entity_type_id)
->accessCheck(FALSE)
->exists(OverridesSectionStorage::FIELD_NAME)
->execute();
......@@ -80,6 +81,7 @@ function layout_builder_component_attributes_uninstall() {
if ($entity instanceof FieldableEntityInterface && $entity->getEntityType()->isRevisionable()) {
// Load all revision IDs for entity.
$revision_ids = $entity_storage->getQuery()
->accessCheck(FALSE)
->allRevisions()
->condition($entity->getEntityType()->getKey('id'), $entity->id())
->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment