You are here

public function GeoConstraintValidator::__construct in Geofield 8

Constructs a new GeoConstraintValidator object.

Parameters

\Drupal\geofield\GeoPHP\GeoPHPInterface $geophp_wrapper: The geoPhpWrapper.

File

src/Plugin/Validation/Constraint/GeoConstraintValidator.php, line 29

Class

GeoConstraintValidator
Validates the GeoType constraint.

Namespace

Drupal\geofield\Plugin\Validation\Constraint

Code

public function __construct(GeoPHPInterface $geophp_wrapper) {
  $this->geoPhpWrapper = $geophp_wrapper;
}