src/Mapper/ResourceMapperRegistry.php
public function supportsEntity(EntityInterface $entity): bool
    {
        foreach ($this->mappers as $mapper) {
            if ($mapper->supportsEntity($entity)) {
                return true;
            }
        }

        return false;
    }
public function supportsEntity(EntityInterface $entity): bool
    {
        foreach ($this->mappers as $mapper) {
            if ($mapper->supportsEntity($entity)) {
                return true;
            }
        }

        return false;
    }
public function supportsEntity ( EntityInterface $ entity ) : bool { foreach ( $ this -> mappers as $ mapper ) { if ( $ mapper -> supportsEntity ( $ entity ) ) { return true ; } } return false ; }
Indicates if this mapper can handle the given entity

@param EntityInterface $entity

@return bool
Indicates if this mapper can handle the given entity