public function Callback::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

Overrides Constraint::getTargets

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Callback.php, line 46

Class

Callback
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Constraints

Code

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