Commit c246b07e authored by webchick's avatar webchick
Browse files

Issue #2137301 by cayci1, fago: Move entity constraints under the Entity component.

parent fff357f1
......@@ -2,21 +2,18 @@
/**
* @file
* Contains \Drupal\Core\Validation\Constraint\BundleConstraint.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraint.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Checks if a value is a valid entity type.
*
* @todo: Move this below the entity core component.
*
* @Plugin(
* id = "Bundle",
* label = @Translation("Bundle", context = "Validation"),
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\BundleConstraintValidator.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraintValidator.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\EntityChangedConstraint.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraint.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\EntityChangedConstraintValidator.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraintValidator.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Drupal\Core\Entity\EntityChangedInterface;
use Symfony\Component\Validator\Constraint;
......
......@@ -2,21 +2,18 @@
/**
* @file
* Contains \Drupal\Core\Validation\Constraint\EntityTypeConstraint.
* Contains \Drupal\Core\Entity\Constraint\EntityTypeConstraint.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Checks if a value is a valid entity type.
*
* @todo: Move this below the entity core component.
*
* @Plugin(
* id = "EntityType",
* label = @Translation("Entity type", context = "Validation"),
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\EntityTypeConstraintValidator.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityTypeConstraintValidator.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Drupal\Core\Entity\EntityInterface;
use Symfony\Component\Validator\Constraint;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\ValidReferenceConstraint.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\ValidReferenceConstraint.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\ValidReferenceConstraintValidator.
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\ValidReferenceConstraintValidator.
*/
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment