public function WorkspaceForm::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/Form/WorkspaceForm.php \Drupal\workspaces\Form\WorkspaceForm::__construct()
Constructs a new WorkspaceForm.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger 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
- core/
modules/ workspaces/ src/ Form/ WorkspaceForm.php, line 46
Class
- WorkspaceForm
- Form controller for the workspace edit forms.
Namespace
Drupal\workspaces\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, MessengerInterface $messenger, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->messenger = $messenger;
}