You are here

public function CampaignMonitorManager::getListSettings in Campaign Monitor 8.2

Gets the settings for a list.

1 call to CampaignMonitorManager::getListSettings()
CampaignMonitorManager::isListEnabled in src/CampaignMonitorManager.php
Checks if the list given by id is enabled locally.

File

src/CampaignMonitorManager.php, line 443

Class

CampaignMonitorManager
Manager for Campaignmonitor.

Namespace

Drupal\campaignmonitor

Code

public function getListSettings($list_id, $config = NULL) {
  $list_key = $this
    ->listKey($list_id);
  if (!$config) {

    // Get list config.
    $config = $this->configFactory
      ->get('campaignmonitor.settings.list');
  }
  return $config
    ->get($list_key);
}