public function GTMContainer::save in GoogleTagManager 7.2
Saves configuration to database.
Parameters
int $export_type: (optional) The indicator of a new or existing configuration item.
Return value
bool Whether the save was successful.
File
- includes/
entity/ container.inc, line 640
Class
- GTMContainer
- Defines the container configuration entity.
Code
public function save($export_type = EXPORT_IN_DATABASE) {
// $export_type = isset($this->export_type) ? $this->export_type : NULL;
$export_type = isset($this->export_type) ? $this->export_type : $export_type;
$data = (array) $this;
$config['name'] = "google_tag.container.{$this->name}";
$config['data'] = $data;
$config['type'] = 'Normal';
$config['export_type'] = $export_type;
$config = (object) $config;
$result = ctools_export_crud_save('gtag_config', $config);
return $result;
}