function cmis_get_configurations in CMIS API 8
Same name and namespace in other branches
- 8.2 cmis.module \cmis_get_configurations()
- 3.0.x 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 153 - Contains cmis.module.
Code
function cmis_get_configurations() {
$storage = \Drupal::entityTypeManager()
->getStorage('cmis_connection_entity');
$configs = $storage
->loadMultiple();
$options = array(
'_none' => t('None'),
);
foreach ($configs as $key => $config) {
$options[$key] = $config
->get('label');
}
return $options;
}