You are here

public static function ContentLinksForm::requiredContentList in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 src/Form/ContentLinksForm.php \Drupal\gdpr\Form\ContentLinksForm::requiredContentList()
  2. 3.0.x src/Form/ContentLinksForm.php \Drupal\gdpr\Form\ContentLinksForm::requiredContentList()

Return an array of the required content labels keyed by machine name.

Return value

array The required content.

2 calls to ContentLinksForm::requiredContentList()
ContentLinksForm::buildForm in src/Form/ContentLinksForm.php
Form constructor.
gdpr_checklistapi_checklist_items in ./gdpr.module
Callback for gdpr_checklistapi_checklist_info().

File

src/Form/ContentLinksForm.php, line 85

Class

ContentLinksForm
Class ContentLinksForm.

Namespace

Drupal\gdpr\Form

Code

public static function requiredContentList() {
  return [
    'privacy_policy' => t('Privacy policy'),
    'terms_of_use' => t('Terms of use'),
    'about_us' => t('About us'),
    'impressum' => t('Impressum'),
  ];
}