NodeRevisionRevertForm::__construct

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;
}
doc_Drupal
2016-10-29 09:31:10
Comments
Leave a Comment

Please login to continue.