public function ScheduledTransitionForm::__construct in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/Form/ScheduledTransitionForm.php \Drupal\scheduled_transitions\Form\ScheduledTransitionForm::__construct()
Constructs a ContentEntityForm object.
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.
Overrides ContentEntityForm::__construct
File
- src/
Form/ ScheduledTransitionForm.php, line 41
Class
- ScheduledTransitionForm
- Show all scheduled transitions for an entity.
Namespace
Drupal\scheduled_transitions\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, DateFormatterInterface $dateFormatter, LanguageManagerInterface $languageManager) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->dateFormatter = $dateFormatter;
$this->languageManager = $languageManager;
}