You are here

public function WorkflowsFieldContraintValidator::__construct in Workflows Field 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Validation/Constraint/WorkflowsFieldContraintValidator.php \Drupal\workflows_field\Plugin\Validation\Constraint\WorkflowsFieldContraintValidator::__construct()

Creates an instance of WorkflowsFieldContraintValidator.

File

src/Plugin/Validation/Constraint/WorkflowsFieldContraintValidator.php, line 34

Class

WorkflowsFieldContraintValidator
Validates the workflows field.

Namespace

Drupal\workflows_field\Plugin\Validation\Constraint

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountInterface $currentUser) {
  $this->entityTypeManager = $entityTypeManager;
  $this->currentUser = $currentUser;
}