function NodeForm::__construct
Same name and namespace in other branches
- 11.x core/modules/node/src/Form/NodeForm.php \Drupal\node\Form\NodeForm::__construct()
- 10 core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::__construct()
- 9 core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::__construct()
- 8.9.x core/modules/node/src/NodeForm.php \Drupal\node\NodeForm::__construct()
Constructs a NodeForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Drupal\Core\TempStore\PrivateTempStoreFactory $tempStoreFactory: The factory for the temp store object.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Drupal\Core\Session\AccountInterface $currentUser: The current user.
\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter service.
Overrides ContentEntityForm::__construct
File
-
core/
modules/ node/ src/ Form/ NodeForm.php, line 40
Class
- NodeForm
- Form handler for the node edit forms.
Namespace
Drupal\node\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, protected PrivateTempStoreFactory $tempStoreFactory, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, protected AccountInterface $currentUser, protected DateFormatterInterface $dateFormatter) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.