function extra_field_plus_help in Extra Field Settings Provider 8
Same name and namespace in other branches
- 8.2 extra_field_plus.module \extra_field_plus_help()
Implements hook_help().
File
- ./
extra_field_plus.module, line 14 - Main file for extra_field_plus module.
Code
function extra_field_plus_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.extra_field_plus':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module provides base plugins and interface for extra fields with editable display settings, like normal fields formatter settings.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<p>' . t('To provide the extra field plugin with settings you must at least extend the <code>ExtraFieldPlusDisplayInterface</code>.') . '</p>';
$output .= '<p>' . t('But there are two base plugins which can help you with this. Just extend <code>ExtraFieldPlusDisplayBase</code> or <code>ExtraFieldPlusDisplayFormattedBase</code> plugins.') . '</p>';
$output .= '<p>' . t('All yours extra field plugins have to be placed in <code>your_custom_module/src/Plugin/ExtraField/Display</code> folder.') . '</p>';
return $output;
}
}