You are here

class TestLoader in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php \Symfony\Component\Validator\Tests\Mapping\Factory\TestLoader
  2. 8.0 core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php \Drupal\twig_loader_test\Loader\TestLoader
Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php \Symfony\Component\Validator\Tests\Mapping\Factory\TestLoader

Hierarchy

Expanded class hierarchy of TestLoader

File

vendor/symfony/validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php, line 112

Namespace

Symfony\Component\Validator\Tests\Mapping\Factory
View source
class TestLoader implements LoaderInterface {
  public function loadClassMetadata(ClassMetadata $metadata) {
    $metadata
      ->addConstraint(new ConstraintA());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestLoader::loadClassMetadata public function Loads validation metadata into a {@link ClassMetadata} instance. Overrides LoaderInterface::loadClassMetadata