You are here

public function EditTexts::buildForm in TacJS 8.3

Same name and namespace in other branches
  1. 8.6 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::buildForm()
  2. 8.2 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::buildForm()
  3. 8.4 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::buildForm()
  4. 8.5 src/Form/Steps/EditTexts.php \Drupal\tacjs\Form\Steps\EditTexts::buildForm()

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 ConfigFormBase::buildForm

File

src/Form/Steps/EditTexts.php, line 33

Class

EditTexts
Class EditTexts.

Namespace

Drupal\tacjs\Form\Steps

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('tacjs.settings');
  $form['middleBarHead'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Middle Bar Head'),
    '#default_value' => $config
      ->get('texts.middleBarHead'),
  ];
  $form['adblock'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Adblock'),
    '#default_value' => $config
      ->get('texts.adblock'),
  ];
  $form['adblock_call'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Adblock Call'),
    '#default_value' => $config
      ->get('texts.adblock_call'),
  ];
  $form['reload'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Reload'),
    '#default_value' => $config
      ->get('texts.reload'),
  ];
  $form['alertBigScroll'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Alert Big Scroll'),
    '#default_value' => $config
      ->get('texts.alertBigScroll'),
  ];
  $form['alertBigClick'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Alert Big Click'),
    '#default_value' => $config
      ->get('texts.alertBigClick'),
  ];
  $form['alertBig'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('AlertBig'),
    '#default_value' => $config
      ->get('texts.alertBig'),
  ];
  $form['alertBigPrivacy'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Alert Big Privacy'),
    '#default_value' => $config
      ->get('texts.alertBigPrivacy'),
  ];
  $form['alertSmall'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Alert Small'),
    '#default_value' => $config
      ->get('texts.alertSmall'),
  ];
  $form['personalize'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Personalize'),
    '#default_value' => $config
      ->get('texts.personalize'),
  ];
  $form['acceptAll'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Accept All'),
    '#default_value' => $config
      ->get('texts.acceptAll'),
  ];
  $form['close'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Close'),
    '#default_value' => $config
      ->get('texts.close'),
  ];
  $form['privacyUrl'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Privacy Url'),
    '#default_value' => $config
      ->get('texts.privacyUrl'),
  ];
  $form['all'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('All'),
    '#default_value' => $config
      ->get('texts.all'),
  ];
  $form['info'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Info'),
    '#default_value' => $config
      ->get('texts.info'),
  ];
  $form['disclaimer'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Disclaimer'),
    '#default_value' => $config
      ->get('texts.disclaimer'),
  ];
  $form['allow'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Allow'),
    '#default_value' => $config
      ->get('texts.allow'),
  ];
  $form['deny'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Deny'),
    '#default_value' => $config
      ->get('texts.deny'),
  ];
  $form['noCookie'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('No Cookie'),
    '#default_value' => $config
      ->get('texts.noCookie'),
  ];
  $form['useCookie'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Use Cookie'),
    '#default_value' => $config
      ->get('texts.useCookie'),
  ];
  $form['useCookieCurrent'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Use Cookie Current'),
    '#default_value' => $config
      ->get('texts.useCookieCurrent'),
  ];
  $form['useNoCookie'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Use No Cookie'),
    '#default_value' => $config
      ->get('texts.useNoCookie'),
  ];
  $form['more'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('More'),
    '#default_value' => $config
      ->get('texts.more'),
  ];
  $form['source'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Source'),
    '#default_value' => $config
      ->get('texts.source'),
  ];
  $form['credit'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Credit'),
    '#default_value' => $config
      ->get('texts.credit'),
  ];
  $form['noServices'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('No Services'),
    '#default_value' => $config
      ->get('texts.noServices'),
  ];
  $form['toggleInfoBox'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Toggle Info Box'),
    '#default_value' => $config
      ->get('texts.toggleInfoBox'),
  ];
  $form['title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Title'),
    '#default_value' => $config
      ->get('texts.title'),
  ];
  $form['cookieDetail'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Cookie Detail'),
    '#default_value' => $config
      ->get('texts.cookieDetail'),
  ];
  $form['ourSite'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Our Site'),
    '#default_value' => $config
      ->get('texts.ourSite'),
  ];
  $form['newWindow'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('New Window'),
    '#default_value' => $config
      ->get('texts.newWindow'),
  ];
  $form['allowAll'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Allow All'),
    '#default_value' => $config
      ->get('texts.allowAll'),
  ];
  $form['denyAll'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Deny All'),
    '#default_value' => $config
      ->get('texts.denyAll'),
  ];
  $form['fallback'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Fallback'),
    '#default_value' => $config
      ->get('texts.fallback'),
  ];
  $form['ads_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Ads Title'),
    '#default_value' => $config
      ->get('texts.ads.title'),
  ];
  $form['ads_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Ads Details'),
    '#default_value' => $config
      ->get('texts.ads.details'),
  ];
  $form['analytic_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Analytic Title'),
    '#default_value' => $config
      ->get('texts.analytic.title'),
  ];
  $form['analytic_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Analytic Details'),
    '#default_value' => $config
      ->get('texts.analytic.details'),
  ];
  $form['social_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Social Title'),
    '#default_value' => $config
      ->get('texts.social.title'),
  ];
  $form['social_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Social Details'),
    '#default_value' => $config
      ->get('texts.social.details'),
  ];
  $form['video_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Video Title'),
    '#default_value' => $config
      ->get('texts.video.title'),
  ];
  $form['video_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Video Details'),
    '#default_value' => $config
      ->get('texts.video.details'),
  ];
  $form['comment_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Comment Title'),
    '#default_value' => $config
      ->get('texts.comment.title'),
  ];
  $form['comment_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Comment Details'),
    '#default_value' => $config
      ->get('texts.comment.details'),
  ];
  $form['support_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Support Title'),
    '#default_value' => $config
      ->get('texts.support.title'),
  ];
  $form['support_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Support Details'),
    '#default_value' => $config
      ->get('texts.support.details'),
  ];
  $form['api_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Api Title'),
    '#default_value' => $config
      ->get('texts.api.title'),
  ];
  $form['api_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Api Details'),
    '#default_value' => $config
      ->get('texts.api.details'),
  ];
  $form['other_title'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Other Title'),
    '#default_value' => $config
      ->get('texts.other.title'),
  ];
  $form['other_details'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Other Details'),
    '#default_value' => $config
      ->get('texts.other.details'),
  ];
  return parent::buildForm($form, $form_state);
}