public function ElementMetadata::hasConstraints

Returns whether this element has any constraints.

Return value

Boolean

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ElementMetadata.php, line 89

Class

ElementMetadata

Namespace

Symfony\Component\Validator\Mapping

Code

public function hasConstraints() {
  return count($this->constraints) > 0;
}