You are here

class GeoConstraint in Geofield 8

Validation constraint for geospatial values.

Plugin annotation


@Constraint(
  id = "GeoType",
  label = @Translation("Geo data valid for geofield type.", context = "Validation"),
)

Hierarchy

  • class \Drupal\geofield\Plugin\Validation\Constraint\GeoConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of GeoConstraint

1 file declares its use of GeoConstraint
ConstraintsTest.php in tests/src/Kernel/ConstraintsTest.php

File

src/Plugin/Validation/Constraint/GeoConstraint.php, line 15

Namespace

Drupal\geofield\Plugin\Validation\Constraint
View source
class GeoConstraint extends Constraint {
  public $message = '"@value" is not a valid geospatial content.';

}

Members