You are here

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

Class

CountryType
Plugin implementation of the 'country_type' field type.

Namespace

Drupal\country_state_city\Plugin\Field\FieldType

Code

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