You are here

private function OfficialFacebookPixelOptions::setOptions in Official Facebook Pixel 8

Same name and namespace in other branches
  1. 7 src/OfficialFacebookPixelOptions.php \Drupal\official_facebook_pixel\OfficialFacebookPixelOptions::setOptions()
1 call to OfficialFacebookPixelOptions::setOptions()
OfficialFacebookPixelOptions::__construct in src/OfficialFacebookPixelOptions.php

File

src/OfficialFacebookPixelOptions.php, line 54
Contains \Drupal\official_facebook_pixel \OfficialFacebookPixelOptions.

Class

OfficialFacebookPixelOptions
Class OfficialFacebookPixelOptions.

Namespace

Drupal\official_facebook_pixel

Code

private function setOptions() {
  $config = \Drupal::config(OfficialFacebookPixelConfig::CONFIG_NAME);
  $this->options = array(
    OfficialFacebookPixelConfig::FORM_PIXEL_KEY => $config
      ->get(OfficialFacebookPixelConfig::FORM_PIXEL_KEY),
    OfficialFacebookPixelConfig::FORM_PII_KEY => $config
      ->get(OfficialFacebookPixelConfig::FORM_PII_KEY),
  );
}