class EntityTestDefaultPlugin

Same name in other branches
  1. 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestDefaultPlugin.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestDefaultPlugin
  2. 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestDefaultPlugin.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestDefaultPlugin

A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory.

Plugin annotation


@Constraint(
  id = "EntityTestDefaultPlugin",
  label = @Translation("Constraint that extends PluginBase."),
  type = "entity"
)

Hierarchy

Expanded class hierarchy of EntityTestDefaultPlugin

1 string reference to 'EntityTestDefaultPlugin'
ConstraintFactoryTest::testCreateInstance in core/tests/Drupal/KernelTests/Core/Validation/ConstraintFactoryTest.php
@covers ::createInstance

File

core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestDefaultPlugin.php, line 16

Namespace

Drupal\entity_test\Plugin\Validation\Constraint
View source
class EntityTestDefaultPlugin extends PluginBase {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.