You are here

DataPolicyRevisionRevertForm.php in Open Social 8.9

File

modules/custom/social_gdpr/src/Form/DataPolicyRevisionRevertForm.php
View 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

Namesort descending Description
DataPolicyRevisionRevertForm Provides a form for reverting a Data policy revision.