public function GroupContentCardinalityValidator::__construct in Group 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Validation/Constraint/GroupContentCardinalityValidator.php \Drupal\group\Plugin\Validation\Constraint\GroupContentCardinalityValidator::__construct()
Constructs a GroupContentCardinalityValidator object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Plugin/ Validation/ Constraint/ GroupContentCardinalityValidator.php, line 36
Class
- GroupContentCardinalityValidator
- Checks the amount of times a single content entity can be added to a group.
Namespace
Drupal\group\Plugin\Validation\ConstraintCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}