You are here

protected function EntityShareCronService::getChannelConfig in Entity Share Cron 8

Same name and namespace in other branches
  1. 8.2 src/EntityShareCronService.php \Drupal\entity_share_cron\EntityShareCronService::getChannelConfig()
  2. 3.0.x src/EntityShareCronService.php \Drupal\entity_share_cron\EntityShareCronService::getChannelConfig()

Returns the settings of a channel.

Parameters

string $remote_id: The ID of the remote the channel belongs to.

string $channel_id: The ID of the channel.

Return value

array Channel settings.

1 call to EntityShareCronService::getChannelConfig()
EntityShareCronService::sync in src/EntityShareCronService.php
Synchronizes entities starting from provided channel URL.

File

src/EntityShareCronService.php, line 236

Class

EntityShareCronService
Entity Share Cron service.

Namespace

Drupal\entity_share_cron

Code

protected function getChannelConfig($remote_id, $channel_id) {
  $settings = [];
  $remotes = $this->config
    ->get('remotes');
  if (!empty($remotes[$remote_id]['channels'][$channel_id])) {
    $settings = $remotes[$remote_id]['channels'][$channel_id];
  }
  return $settings;
}