Skip to content
Snippets Groups Projects

3401796 - Add help hook

1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
@@ -7,6 +7,21 @@
use Drupal\Core\Access\AccessResult;
use Drupal\node\NodeInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function unpublished_node_permissions_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.unpublished_node_permissions':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Creates permisisons per node content type to control access to unpublished nodes per content type.') . '</p>';
return $output;
}
}
/**
* Implements hook_views_data_alter().
Loading