protected function AcquiadamConfig::getFormValueFromConfig in Media: Acquia DAM 8
Gets a form value from stored config.
Parameters
string $field_name: The key of the field in the simple config.
Return value
mixed The value for the given form field, or NULL.
1 call to AcquiadamConfig::getFormValueFromConfig()
- AcquiadamConfig::getFieldValue in src/
Form/ AcquiadamConfig.php - Gets a form field value, either from the form or from config.
File
- src/
Form/ AcquiadamConfig.php, line 423
Class
- AcquiadamConfig
- Class AcquiadamConfig.
Namespace
Drupal\media_acquiadam\FormCode
protected function getFormValueFromConfig($field_name) {
$config_name = $this
->getEditableConfigNames();
$value = $this
->config(reset($config_name))
->get($field_name);
return $value;
}