Contribution Date
Technology
Contribution Project
Contribution Details
Hi kirkkala,
In d8 no need to write the hook_permission inside .module file instead of that you can use modulename.permission.yml which you have already implement.
File:
nodeinfo.module
20
/**
* Implements hook_permissions().
*/
function nodeinfo_permission() {
return array(
'view node info' => array(
'title' => t('View node info'),
'description' => t('Display node info message when viewing nodes.'),
),
);
}
The above code looks like its not required. It is recommended to remove the above code.
Contribution Issue Link
Files count
0
Patches count
0