You are here

public function WeatherDisplayConstraintValidator::__construct in Weather 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Validation/Constraint/WeatherDisplayConstraintValidator.php \Drupal\weather\Plugin\Validation\Constraint\WeatherDisplayConstraintValidator::__construct()

Creates a new PathAliasConstraintValidator instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Plugin/Validation/Constraint/WeatherDisplayConstraintValidator.php, line 30

Class

WeatherDisplayConstraintValidator
Constraint validator for changing path aliases in pending revisions.

Namespace

Drupal\weather\Plugin\Validation\Constraint

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}