function config_selector_help in Configuration selector 8
Same name and namespace in other branches
- 8.2 config_selector.module \config_selector_help()
Implements hook_help().
File
- ./
config_selector.module, line 13 - This is the Configuration Selector module.
Code
function config_selector_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.config_selector':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Configuration Selector module allows modules and install profiles to provide multiple versions of optional configuration.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Managing sets of configuration') . '</dt>';
$output .= '<dd>' . t('For example, if you want to provide a view that lists content that integrates with search_api or content_lock or both or neither. You can provide 4 different views in config/optional and as different dependencies are installed views are enabled and disabled according to a priority set with the configuration. Which configuration is enabled can be managed via the <a href=":ui_url">user interface</a>.', [
':ui_url' => \Drupal::url('entity.config_selector_feature.collection'),
]) . '</dd>';
$output .= '</dl>';
return $output;
case 'entity.config_selector_feature.manage':
$output = '<p>' . t('Select which configuration entity is enabled as part of the feature. Selecting a disabled configuration entity will disable the currently selected.') . '</p>';
return $output;
}
}