['config' => ['node.type.article']] * @endcode * The module providing this permission doesn't have to be added as a * dependency. It is automatically parsed, stored and retrieved from the * 'provider' key. * - provider: The provider name of the permission. This is set * automatically to the module that provides the permission.yml file. * * @see \Drupal\Core\Config\Entity\ConfigDependencyManager */ public function getPermissions(); /** * Determines whether a module provides some permissions. * * @param string $module_name * The module name. * * @return bool * Returns TRUE if the module provides some permissions, otherwise FALSE. */ public function moduleProvidesPermissions($module_name); }