src/Form/Type/Configurator/EntityTypeConfigurator.php
public function supports($type, array $options, array $metadata)
    {
        $isEntityType = \in_array($type, ['entity', EntityType::class], true);

        return $isEntityType && 'association' === $metadata['dataType'];
    }
public function supports($type, array $options, array $metadata)
    {
        $isEntityType = \in_array($type, ['entity', EntityType::class], true);

        return $isEntityType && 'association' === $metadata['dataType'];
    }
{@inheritdoc}