public function CampaignMonitorManager::setListSettings in Campaign Monitor 8.2
Sets the config for a list.
Parameters
string $list_id: The Campaign Monitor list ID.
mixed $list_options: The options in list.
File
- src/
CampaignMonitorManager.php, line 460
Class
- CampaignMonitorManager
- Manager for Campaignmonitor.
Namespace
Drupal\campaignmonitorCode
public function setListSettings($list_id, $list_options) {
$config = $this->configFactory
->getEditable('campaignmonitor.settings.list');
$list_key = $this
->listKey($list_id);
$config
->set($list_key, $list_options)
->save();
}