Added RouteMatchInterface

This commit is contained in:
samiahmedsiddiqui 2018-10-08 17:08:53 +05:00
parent 59854fb02c
commit d5b078b3f9

View File

@ -5,13 +5,12 @@
* Add scripts and styles from the frontend on all over the site. * Add scripts and styles from the frontend on all over the site.
*/ */
use \Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Routing\RouteMatchInterface;
/** /**
* Implements hook_help(). * Implements hook_help().
*/ */
function header_and_footer_scripts_help($route_name, function header_and_footer_scripts_help($route_name, RouteMatchInterface $route_match) {
\Drupal\Core\Routing\RouteMatchInterface $route_match) {
switch ($route_name) { switch ($route_name) {
case 'help.page.header_and_footer_scripts': case 'help.page.header_and_footer_scripts':
$output = '<h2>' . t('About') . '</h2>'; $output = '<h2>' . t('About') . '</h2>';