public function EntityLabelNotNullConstraintValidator::__construct in Automatic Entity Label 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Validation/EntityLabelNotNullConstraintValidator.php \Drupal\auto_entitylabel\Plugin\Validation\EntityLabelNotNullConstraintValidator::__construct()
Creates an EntityLabelNotNullConstraintValidator object.
Parameters
\Drupal\auto_entitylabel\EntityDecorator $entityDecorator: The entity decorator service.
File
- src/
Plugin/ Validation/ EntityLabelNotNullConstraintValidator.php, line 33
Class
- EntityLabelNotNullConstraintValidator
- EntityLabelNotNull constraint validator.
Namespace
Drupal\auto_entitylabel\Plugin\ValidationCode
public function __construct(EntityDecorator $entityDecorator) {
$this->entityDecorator = $entityDecorator;
}