Drupal 8  8.0.2
NodeRevisionRevertTranslationForm Class Reference
Inheritance diagram for NodeRevisionRevertTranslationForm:

Public Member Functions

 __construct (EntityStorageInterface $node_storage, DateFormatter $date_formatter, LanguageManagerInterface $language_manager)
 
 getFormId ()
 
 getQuestion ()
 
 getDescription ()
 
 buildForm (array $form, FormStateInterface $form_state, $node_revision=NULL, $langcode=NULL)
 
- Public Member Functions inherited from NodeRevisionRevertForm
 __construct (EntityStorageInterface $node_storage, DateFormatter $date_formatter)
 
 getFormId ()
 
 getQuestion ()
 
 getCancelUrl ()
 
 getConfirmText ()
 
 getDescription ()
 
 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)
 
- Static Public Member Functions inherited from NodeRevisionRevertForm
static create (ContainerInterface $container)
 

Protected Attributes

 $langcode
 
 $languageManager
 
- Protected Attributes inherited from NodeRevisionRevertForm
 $revision
 
 $nodeStorage
 
 $dateFormatter
 

Additional Inherited Members

- Protected Member Functions inherited from NodeRevisionRevertForm
 prepareRevertedRevision (NodeInterface $revision, FormStateInterface $form_state)
 

Detailed Description

Provides a form for reverting a node revision for a single translation.

Constructor & Destructor Documentation

__construct ( EntityStorageInterface  $node_storage,
DateFormatter  $date_formatter,
LanguageManagerInterface  $language_manager 
)

Constructs a new NodeRevisionRevertTranslationForm.

Parameters
\Drupal\Core\Entity\EntityStorageInterface$node_storageThe node storage.
\Drupal\Core\Datetime\DateFormatter$date_formatterThe date formatter service.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.

References Drupal\languageManager().

Here is the call graph for this function:

Member Function Documentation

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

{}

References t().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

getDescription ( )

{Returns additional text to display as a description.

Returns
string The form description.
}

Implements ConfirmFormInterface.

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 Drupal\languageManager(), and t().

Here is the call graph for this function:


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