Commit f8250858 authored by catch's avatar catch
Browse files

fix: #3557516...

fix: #3557516 \Drupal\views\Plugin\views\argument_validator\Entity::calculateDependencies() causes deprecations on PHP 8.5

By: @alexpott
By: @smustgrave
(cherry picked from commit 6a2c85f6)
parent 137b3fe2
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ public function calculateDependencies() {

    // The bundle entity type might not exist. For example, users do not have
    // bundles.
    if ($this->entityTypeManager->hasHandler($bundle_entity_type, 'storage')) {
    if ($bundle_entity_type && $this->entityTypeManager->hasHandler($bundle_entity_type, 'storage')) {
      $bundle_entity_storage = $this->entityTypeManager->getStorage($bundle_entity_type);

      foreach ($bundle_entity_storage->loadMultiple(array_keys($this->options['bundles'])) as $bundle_entity) {