Contribution Date
Technology
Contribution Project
Contribution Details
Drupal 8 git repo code does not look as per Drupal 8 coding standard for ex hook_help in Drupal 8 is now
use Drupal\user\RoleInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function legal_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the user_expire module.
case 'help.page.legal':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<dt>'.t('This module which displays your Terms & Conditions to users who want to
register, and makes sure they accept the T&C before their registration
is accepted.'). '</dt>';
return $output;
break;
}
}
Adding a patch for example.
Contribution Issue Link
Contribution Link
Files count
1
Patches count
1