Skip to content
Snippets Groups Projects
Commit f7e2aabc authored by lugir's avatar lugir
Browse files

Issue #3341199 by dineshkumarbollu: Implement hook_help()

parent 1690e6da
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,22 @@
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function mix_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.mix':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Mix is a collection of features for Drupal site building, management, development and user experience improving. For more information, see the <a href=":url">online project page for the Mix module</a>.', [':url' => 'https://www.drupal.org/project/mix']) . '</p>';
return $output;
}
}
/**
* Implements hook_form_alter().
*/
......
mix.settings:
path: '/admin/config/mix'
defaults:
_title: 'Mix'
_title: 'Mix settings'
_form: 'Drupal\mix\Form\SettingsForm'
requirements:
_permission: 'administer site configuration'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment