public NodeRevisionRevertForm::__construct(EntityStorageInterface $node_storage, DateFormatterInterface $date_formatter)
Constructs a new NodeRevisionRevertForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $node_storage: The node storage.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
File
- core/modules/node/src/Form/NodeRevisionRevertForm.php, line 47
Class
- NodeRevisionRevertForm
- Provides a form for reverting a node revision.
Namespace
Drupal\node\Form
Code
public function __construct(EntityStorageInterface $node_storage, DateFormatterInterface $date_formatter) { $this->nodeStorage = $node_storage; $this->dateFormatter = $date_formatter; }
Please login to continue.