public function BlackholeMetadataFactory::getClassMetadata

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/BlackholeMetadataFactory.php, line 21

Class

BlackholeMetadataFactory
Simple implementation of ClassMetadataFactoryInterface that can be used when using ValidatorInterface::validateValue().

Namespace

Symfony\Component\Validator\Mapping

Code

public function getClassMetadata($class) {
  throw new \LogicException('BlackholeClassMetadataFactory only works with ValidatorInterface::validateValue().');
}