You are here

public function BuildHooksDeploymentValidator::__construct in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Validation/Constraint/BuildHooksDeploymentValidator.php \Drupal\build_hooks\Plugin\Validation\Constraint\BuildHooksDeploymentValidator::__construct()

Creates a new BuildHooksEnvironmentConstraintValidator instance.

Parameters

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

File

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

Class

BuildHooksDeploymentValidator
Defines a validator for the BuildHooksEnvironment constraint.

Namespace

Drupal\build_hooks\Plugin\Validation\Constraint

Code

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