function cmis_get_configurations in CMIS API 3.0.x
Same name and namespace in other branches
- 8.2 cmis.module \cmis_get_configurations()
- 8 cmis.module \cmis_get_configurations()
Get configuration entity to private variable.
2 calls to cmis_get_configurations()
- CmisFieldWidget::getConfigurations in src/
Plugin/ Field/ FieldWidget/ CmisFieldWidget.php - Get configuration entity to private variable.
- CmisQueryForm::buildForm in src/
Form/ CmisQueryForm.php - Form constructor.
File
- ./
cmis.module, line 150
Code
function cmis_get_configurations() {
$storage = \Drupal::entityTypeManager()
->getStorage('cmis_connection_entity');
$configs = $storage
->loadMultiple();
$options = [
'_none' => t('None'),
];
foreach ($configs as $key => $config) {
$options[$key] = $config
->get('label');
}
return $options;
}