You are here

public function CountryStateCityType::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/CountryStateCityType.php, line 88

Class

CountryStateCityType
Plugin implementation of the 'country_state_city_type' field type.

Namespace

Drupal\country_state_city\Plugin\Field\FieldType

Code

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