Skip to content
Snippets Groups Projects

Issue #3335606: hook_help function missing in .module file

Closed Shubham Rathore requested to merge issue/access_policy-3335606:1.0.x into 1.0.x
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -13,12 +13,27 @@ use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\query\Sql;
use Drupal\field\FieldConfigInterface;
use Drupal\Core\Database\Query\SelectInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* @file
* Hook implementations for the access_policy module.
*/
/**
* Implements hook_help().
*/
function access_policy_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the access_policy module.
case 'help.page.access_policy':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Access policy module combines Drupal's role based access control (RBAC) architecture with an Attribute Based Access Control (ABAC) architecture to create an incredibly powerful and flexible system for managing access to your content.') . '</p>';
return $output;
}
}
/**
* Implements hook_theme().
*/
Loading