Hi kirkkala,
In d8 no need to write the hook_permission inside .module file i...

Contribution Date
Technology
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 Author
Files count
0
Patches count
0