Verified Commit 33baa524 authored by Alberto Paderno's avatar Alberto Paderno Committed by Alberto Paderno
Browse files

Issue #3293464 by apaderno: Replace any call to EntityType::isSubclassOf()...

Issue #3293464 by apaderno: Replace any call to EntityType::isSubclassOf() with calls to EntityType::entityClassImplements()
parent 5c10840e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ public static function getOptionsFromValues($values) {
        $targetEntityType = \Drupal::service('entity_type.manager')->getDefinition($target_entity_type);

        // If this is a content entity.
        if ($targetEntityType->isSubClassOf('\Drupal\Core\Entity\ContentEntityInterface')) {
        if ($targetEntityType->entityClassImplements('\Drupal\Core\Entity\ContentEntityInterface')) {
          $target_entity_type_bundles = EntityFieldSelect::getReferenceFieldsAllowedBundles($field->getType(), $field_settings);
          $target_bundles_infos = \Drupal::service('entity_type.bundle.info')->getBundleInfo($target_entity_type);
          if (empty($target_entity_type_bundles)) {