Skip to content
Snippets Groups Projects
Commit 745ed18d authored by Patrick van Efferen's avatar Patrick van Efferen Committed by Patrick van Efferen
Browse files

Issue #3287410 by pefferen, joseph.olstad, burnellw_cit, lpeidro, pgrond:...

Issue #3287410 by pefferen, joseph.olstad, burnellw_cit, lpeidro, pgrond: Automated Drupal 10 compatibility fixes
parent 8ac674e2
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,7 @@ function external_entities_entity_bundle_field_info_alter(&$fields, EntityTypeIn
}
$count = \Drupal::entityQuery('external_entity_type')
->accessCheck(FALSE)
->condition('annotation_entity_type_id', $entity_type->id())
->condition('annotation_bundle_id', $bundle)
->count()
......
......@@ -2,6 +2,6 @@ name: External Entities pathauto
type: module
description: 'Allows using remote entities, for example through a REST interface.'
package: External Entities
core_version_requirement: ^8.8 || ^9 || ^10
core_version_requirement: ^9 || ^10
dependencies:
- external_entities:external_entities
......@@ -36,6 +36,7 @@ class ExternalEntityAliasTypeBase extends EntityAliasTypeBase {
->getQuery();
$query->addTag('pathauto_bulk_update');
$query->addMetaData('entity', $this->getEntityTypeId());
$query->accessCheck(FALSE);
// Get the total amount of items to process.
if (!isset($context['sandbox']['total'])) {
......
......@@ -18,6 +18,7 @@ class ExternalEntityListBuilder extends EntityListBuilder {
public function load() {
$entity_query = $this->storage->getQuery();
$entity_query->pager(50);
$entity_query->accessCheck();
$ids = $entity_query->execute();
return $this->storage->loadMultiple($ids);
}
......
......@@ -18,6 +18,7 @@ class ExternalEntityTypeListBuilder extends EntityListBuilder {
public function load() {
$entity_query = $this->storage->getQuery();
$entity_query->pager(50);
$entity_query->accessCheck(FALSE);
$ids = $entity_query->execute();
return $this->storage->loadMultiple($ids);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment