You are here

public function CategoryStorageManager::getCheckboxDefaultStateOptionsList in EU Cookie Compliance (GDPR Compliance) 8

Same name and namespace in other branches
  1. 2.0.x src/CategoryStorageManager.php \Drupal\eu_cookie_compliance\CategoryStorageManager::getCheckboxDefaultStateOptionsList()

Returns an associative array of keys and labels for use in #options.

Return value

array The options list for cookie default checkbox states.

File

src/CategoryStorageManager.php, line 70

Class

CategoryStorageManager
The cookie category storage manager class.

Namespace

Drupal\eu_cookie_compliance

Code

public function getCheckboxDefaultStateOptionsList() {
  return [
    'unchecked' => $this
      ->t('Unchecked by default'),
    'checked' => $this
      ->t('Checked by default'),
    'required' => $this
      ->t('Checked and disabled (user cannot clear the checkbox)'),
  ];
}