public function DuplicateRoleForm::__construct in Duplicate role 8
Constructs a DuplicateRoleForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: The entity type manager.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
File
- src/
Form/ DuplicateRoleForm.php, line 42
Class
- DuplicateRoleForm
- Provides a form for adding a new role.
Namespace
Drupal\duplicate_role\FormCode
public function __construct(EntityTypeManager $entity_type_manager, MessengerInterface $messenger, RouteMatchInterface $route_match) {
$this->entityTypeManager = $entity_type_manager;
$this->messenger = $messenger;
$this->routeMatch = $route_match;
}