DataPolicyRevisionRevertForm.php in Open Social 8.9
Same filename and directory in other branches
- 8.2 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 8.3 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 8.4 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 8.5 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 8.6 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 8.7 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 8.8 modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 10.0.x modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
- 10.1.x modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
Namespace
Drupal\social_gdpr\FormFile
modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.phpView source
<?php
namespace Drupal\social_gdpr\Form;
use Drupal\Core\Url;
use Drupal\data_policy\Form\DataPolicyRevisionRevertForm as DataPolicyRevisionRevertFormBase;
/**
* Provides a form for reverting a Data policy revision.
*
* @ingroup social_gdpr
*/
class DataPolicyRevisionRevertForm extends DataPolicyRevisionRevertFormBase {
/**
* {@inheritdoc}
*/
public function getCancelUrl() {
return new Url('social_gdpr.data_policy.revisions');
}
/**
* {@inheritdoc}
*/
public function getConfirmText() {
return $this
->t('Yes');
}
/**
* {@inheritdoc}
*/
public function getQuestion() {
return $this
->t('Are you sure to revert this revision');
}
}
Classes
Name | Description |
---|---|
DataPolicyRevisionRevertForm | Provides a form for reverting a Data policy revision. |