You are here

public function CountryStateType::getConstraints in Country, State and City Fields 8

Gets a list of validation constraints.

Return value

array Array of constraints, each being an instance of \Symfony\Component\Validator\Constraint.

Overrides TypedData::getConstraints

File

src/Plugin/Field/FieldType/CountryStateType.php, line 79

Class

CountryStateType
Plugin implementation of the 'country_state_type' field type.

Namespace

Drupal\country_state_city\Plugin\Field\FieldType

Code

public function getConstraints() {
  $constraints = parent::getConstraints();
  return $constraints;
}