You are here

public function TacjsSettings::getOptionsTacjs in TacJS 8.2

GetOptionsTacjs.

Return value

mixed

File

src/TacjsSettings.php, line 349

Class

TacjsSettings
Class TacjsSettings.

Namespace

Drupal\tacjs

Code

public function getOptionsTacjs() {
  $config = \Drupal::getContainer()
    ->get('config.factory')
    ->getEditable('tacjs.admin_settings_form');
  $data['cookie_name'] = $config
    ->get('cookie_name');
  $data['high_privacy'] = $config
    ->get('high_privacy');
  $data['orientation'] = $config
    ->get('orientation');
  $data['adblocker'] = $config
    ->get('adblocker');
  $data['show_alertSmall'] = $config
    ->get('show_alertSmall');
  $data['removeCredit'] = $config
    ->get('removeCredit');
  $data['cookieslist'] = $config
    ->get('cookieslist');
  $data['orientation'] = $config
    ->get('orientation');
  $data['handleBrowserDNTRequest'] = $config
    ->get('handleBrowserDNTRequest');
  return $data;
}