public function NodeTitleConstraintValidator::__construct in Node Title Validation 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Validation/Constraint/NodeTitleConstraintValidator.php \Drupal\node_title_validation\Plugin\Validation\Constraint\NodeTitleConstraintValidator::__construct()
- 1.0.x src/Plugin/Validation/Constraint/NodeTitleConstraintValidator.php \Drupal\node_title_validation\Plugin\Validation\Constraint\NodeTitleConstraintValidator::__construct()
Constructs a new NodeTitleConstraintValidator.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager service.
\Drupal\Core\Config\ConfigFactory $configFactory: Config factory service.
\Drupal\Core\StringTranslation\TranslationInterface $stringTranslation: The string translation.
File
- src/
Plugin/ Validation/ Constraint/ NodeTitleConstraintValidator.php, line 57
Class
- NodeTitleConstraintValidator
- Validates the NodeTitleValidate constraint.
Namespace
Drupal\node_title_validation\Plugin\Validation\ConstraintCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactory $configFactory, TranslationInterface $stringTranslation) {
$this->entityTypeManager = $entityTypeManager;
$this->configFactory = $configFactory;
$this->stringTranslation = $stringTranslation;
}