You are here

public function GroupContentCardinalityValidator::__construct in Group 8

Same name and namespace in other branches
  1. 2.0.x 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\Constraint

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}