EntityTestDefaultPlugin.php

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

Namespace

Drupal\entity_test\Plugin\Validation\Constraint

File

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

View source
<?php

namespace Drupal\entity_test\Plugin\Validation\Constraint;

use Drupal\Component\Plugin\PluginBase;

/**
 * A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory.
 *
 * @Constraint(
 *   id = "EntityTestDefaultPlugin",
 *   label = @Translation("Constraint that extends PluginBase."),
 *   type = "entity"
 * )
 */
class EntityTestDefaultPlugin extends PluginBase {

}

Classes

Title Deprecated Summary
EntityTestDefaultPlugin A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory.

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