function drush_config_pages_get_field_value in Config Pages 8.3
Call back function drush_config_pages_get_field_value().
The type of config page. @var string $field_name The name of field.
File
- ./
config_pages.drush.inc, line 94 - Contains the code to generate the drush commands.
Code
function drush_config_pages_get_field_value($bundle, $field_name, $context = NULL) {
try {
$config_page = config_pages_config($bundle, $context);
if (!empty($config_page)) {
drush_print($config_page
->get($field_name)->value);
}
} catch (Exception $e) {
\Drupal::logger('config_pages')
->error($e
->getMessage());
}
}