public function ScheduledTransitionAddForm::__construct in Scheduled Transitions 8
Constructs a new ScheduledTransitionAddForm.
Parameters
\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.
\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: Various date related functionality.
\Drupal\content_moderation\ModerationInformationInterface $moderationInformation: General service for moderation-related questions about Entity API.
\Drupal\content_moderation\StateTransitionValidationInterface $stateTransitionValidation: Validates whether a certain state transition is allowed.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
Overrides ContentEntityForm::__construct
File
- src/
Form/ Entity/ ScheduledTransitionAddForm.php, line 86
Class
- ScheduledTransitionAddForm
- Scheduled transitions add form.
Namespace
Drupal\scheduled_transitions\Form\EntityCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, DateFormatterInterface $dateFormatter, ModerationInformationInterface $moderationInformation, StateTransitionValidationInterface $stateTransitionValidation, LanguageManagerInterface $languageManager) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->dateFormatter = $dateFormatter;
$this->moderationInformation = $moderationInformation;
$this->stateTransitionValidation = $stateTransitionValidation;
$this->languageManager = $languageManager;
}