public function Constraint::getTargets

Returns whether the constraint can be put onto classes, properties or both

This method should return one or more of the constants Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.

@api

Return value

string|array One or more constant values

7 methods override Constraint::getTargets()

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraint.php, line 216

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function getTargets() {
  return self::PROPERTY_CONSTRAINT;
}