protected function PullForm::getChannelOptions in Entity Share 8
Same name and namespace in other branches
- 8.2 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::getChannelOptions()
Helper function.
Return value
string[] An array of remote channels.
1 call to PullForm::getChannelOptions()
- PullForm::buildChannelSelect in modules/
entity_share_client/ src/ Form/ PullForm.php - Helper function to generate channel select.
File
- modules/
entity_share_client/ src/ Form/ PullForm.php, line 276
Class
- PullForm
- Form controller to pull entities.
Namespace
Drupal\entity_share_client\FormCode
protected function getChannelOptions() {
$options = [];
foreach ($this->channelsInfos as $channel_id => $channel_infos) {
$options[$channel_id] = $channel_infos['label'];
}
return $options;
}