You are here

private function AdminSettingsForm::buildVisibilityForm in Acquia Lift Connector 8.3

Same name and namespace in other branches
  1. 8.4 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::buildVisibilityForm()
  2. 8 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::buildVisibilityForm()

Build visibility form.

Return value

array Visibility form.

1 call to AdminSettingsForm::buildVisibilityForm()
AdminSettingsForm::buildForm in src/Form/AdminSettingsForm.php
Form constructor.

File

src/Form/AdminSettingsForm.php, line 361

Class

AdminSettingsForm
Defines a form that configures settings.

Namespace

Drupal\acquia_lift\Form

Code

private function buildVisibilityForm() {
  $visibility_settings = $this
    ->config('acquia_lift.settings')
    ->get('visibility');
  $form = [
    '#title' => $this
      ->t('Visibility'),
    '#description' => $this
      ->t('Lift will skip data collection on those URLs and their aliases.'),
    '#type' => 'details',
    '#tree' => TRUE,
    '#group' => 'data_collection_settings',
  ];
  $form['path_patterns'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Path patterns'),
    '#default_value' => $visibility_settings['path_patterns'],
  ];
  return $form;
}