public function VotingApiReactionForm::__construct in Voting API Reaction 8
Class constructor.
Parameters
\Drupal\votingapi_reaction\VotingApiReactionManager $reaction_manager: Voting API Reaction manager service.
\Drupal\Core\Session\AccountProxy $current_user: Current user service.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides ContentEntityForm::__construct
File
- src/
Form/ VotingApiReactionForm.php, line 57
Class
- VotingApiReactionForm
- Form implementation of the reaction form used in field formatter.
Namespace
Drupal\votingapi_reaction\FormCode
public function __construct(VotingApiReactionManager $reaction_manager, AccountProxy $current_user, EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->reactionManager = $reaction_manager;
$this->currentUser = $current_user;
}