NodeRevisionRevertForm::getConfirmText

public NodeRevisionRevertForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ConfirmFormBase::getConfirmText File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 86 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code public function getConfirmText() { return t('Revert'); }

NodeRevisionRevertForm::getCancelUrl

public NodeRevisionRevertForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 79 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code public function getCancelUrl() { return new Url('entity.node.version_history', array('node' => $this->revision-

NodeRevisionRevertForm::create

public static NodeRevisionRevertForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The s

NodeRevisionRevertForm::buildForm

public NodeRevisionRevertForm::buildForm(array $form, FormStateInterface $form_state, $node_revision = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfirmFormBase::buildForm File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 100 Class NodeRevisionRevertForm Provides a form for reverti

NodeRevisionRevertForm::$revision

The node revision. Type: \Drupal\node\NodeInterface File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 23 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code protected $revision;

NodeRevisionRevertForm::$nodeStorage

The node storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 30 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code protected $nodeStorage;

NodeRevisionRevertForm::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 37 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code protected $dateFormatter;

NodeRevisionRevertForm

Provides a form for reverting a node revision. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\node\Form\NodeRevisionRevertForm File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 16 Namespace Drupal\n

NodeRevisionAccessCheck::__construct

public NodeRevisionAccessCheck::__construct(EntityManagerInterface $entity_manager) Constructs a new NodeRevisionAccessCheck. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. File core/modules/node/src/Access/NodeRevisionAccessCheck.php, line 46 Class NodeRevisionAccessCheck Provides an access checker for node revisions. Namespace Drupal\node\Access Code public function __construct(EntityManagerInterface $entity_manager) { $this->nodeStor

NodeRevisionAccessCheck::checkAccess

public NodeRevisionAccessCheck::checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') Checks node revision access. Parameters \Drupal\node\NodeInterface $node: The node to check. \Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed. string $op: (optional) The specific operation being checked. Defaults to 'view.' Return value bool TRUE if the operation may be performed, FALSE otherwise. File core/modul