function FileSizeLimitConstraintValidator::__construct

Same name in other branches
  1. 11.x core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php \Drupal\file\Plugin\Validation\Constraint\FileSizeLimitConstraintValidator::__construct()

Creates a new FileSizeConstraintValidator.

Parameters

\Drupal\Core\Session\AccountInterface $currentUser: The current user.

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

File

core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php, line 26

Class

FileSizeLimitConstraintValidator
Validates the FileSizeLimitConstraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public function __construct(AccountInterface $currentUser, EntityTypeManagerInterface $entityTypeManager) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.