You are here

public function GTMSettings::__construct in GoogleTagManager 7.2

Constructs a module settings object.

File

includes/entity/settings.inc, line 18

Class

GTMSettings
Defines the module settings entity.

Code

public function __construct() {

  // On load the values include ctools items: table, type, export_type.
  // $values = (array) ctools_export_crud_load('gtag_config', 'google_tag.settings');
  $values = (array) gtag_export_crud_load('gtag_config', 'google_tag.settings');
  foreach ($values as $key => $value) {
    $this->{$key} = $value;
  }
}