You are here

public static function CommonHookHandler::hookPermission in DB Maintenance 7.2

Same name and namespace in other branches
  1. 8 src/Module/Hook/CommonHookHandler.php \Drupal\db_maintenance\Module\Hook\CommonHookHandler::hookPermission()
  2. 2.0.x src/Module/Hook/CommonHookHandler.php \Drupal\db_maintenance\Module\Hook\CommonHookHandler::hookPermission()

Implements hook_permission().

1 call to CommonHookHandler::hookPermission()
db_maintenance_permission in ./db_maintenance.module
Implements hook_permission().

File

src/Module/Hook/CommonHookHandler.php, line 61
CommonHookHandler class.

Class

CommonHookHandler
CommonHookHandler class.

Namespace

Drupal\db_maintenance\Module\Hook

Code

public static function hookPermission() {
  return array(
    'administer db maintenance' => array(
      'title' => t('Administer DB Maintenance'),
      'description' => t('Select which tables to optimize during cron jobs.'),
    ),
  );
}