You are here

function campaignmonitor_get_list_settings in Campaign Monitor 8

Helper function to return local config for a list.

Parameters

$list_id:

Return value

array|mixed|null

15 calls to campaignmonitor_get_list_settings()
CampaignMonitorIcsForm::singleSubscribeForm in modules/campaignmonitor_ics/src/Form/CampaignMonitorIcsForm.php
CampaignMonitorListsController::listToggleEnable in src/Controller/CampaignMonitorListsController.php
CampaignMonitorListsController::overview in src/Controller/CampaignMonitorListsController.php
CampaignMonitorListSettingsForm::buildForm in src/Form/CampaignMonitorListSettingsForm.php
Form constructor.
CampaignMonitorListSettingsForm::submitForm in src/Form/CampaignMonitorListSettingsForm.php
Form submission handler.

... See full list

File

./campaignmonitor.module, line 174
Module that plugs in Campaign Monitor functionality to your Drupal web site. For Campaign Monitor information see: http://www.campaignmonitor.com/.

Code

function campaignmonitor_get_list_settings($list_id) {
  $config = \Drupal::config('campaignmonitor.settings.list');
  $list_key = campaignmonitor_list_key($list_id);
  return $config
    ->get($list_key);
}