Drupal 8  8.0.2
NodeRevisionDeleteForm Class Reference
Inheritance diagram for NodeRevisionDeleteForm:

Public Member Functions

 __construct (EntityStorageInterface $node_storage, EntityStorageInterface $node_type_storage, Connection $connection)
 
 getFormId ()
 
 getQuestion ()
 
 getCancelUrl ()
 
 getConfirmText ()
 
 buildForm (array $form, FormStateInterface $form_state, $node_revision=NULL)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from ConfirmFormBase
 getDescription ()
 
 getConfirmText ()
 
 getCancelText ()
 
 getFormName ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from FormInterface
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $revision
 
 $nodeStorage
 
 $nodeTypeStorage
 
 $connection
 

Detailed Description

Provides a form for reverting a node revision.

Constructor & Destructor Documentation

__construct ( EntityStorageInterface  $node_storage,
EntityStorageInterface  $node_type_storage,
Connection  $connection 
)

Constructs a new NodeRevisionDeleteForm.

Parameters
\Drupal\Core\Entity\EntityStorageInterface$node_storageThe node storage.
\Drupal\Core\Entity\EntityStorageInterface$node_type_storageThe node type storage.
\Drupal\Core\Database\Connection$connectionThe database connection.

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state,
  $node_revision = NULL 
)

{}

static create ( ContainerInterface  $container)
static

{}

getCancelUrl ( )

{Returns the route to go to if the user cancels the action.

Returns
A URL object.
}

Implements ConfirmFormInterface.

getConfirmText ( )

{Returns a caption for the button that confirms the action.

Returns
string The form confirmation text.
}

Implements ConfirmFormInterface.

References t().

Here is the call graph for this function:

getFormId ( )

{Returns a unique string identifying the form.

Returns
string The unique string identifying the form.
}

Implements FormInterface.

getQuestion ( )

{Returns the question to ask the user.

Returns
string The form question. The page title will be set to this value.
}

Implements ConfirmFormInterface.

References format_date(), and t().

Here is the call graph for this function:

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References format_date(), Drupal\logger(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: