You are here

public static function ConfigHandler::getCronFrequency in DB Maintenance 8

Same name and namespace in other branches
  1. 7.2 src/Module/Config/ConfigHandler.php \Drupal\db_maintenance\Module\Config\ConfigHandler::getCronFrequency()
  2. 2.0.x src/Module/Config/ConfigHandler.php \Drupal\db_maintenance\Module\Config\ConfigHandler::getCronFrequency()

Returns cron frequency.

2 calls to ConfigHandler::getCronFrequency()
CommonHookHandler::hookCron in src/Module/Hook/CommonHookHandler.php
Implements hook_cron().
DbMaintenanceAdminSettings::buildForm in src/Form/DbMaintenanceAdminSettings.php
Form constructor.

File

src/Module/Config/ConfigHandler.php, line 35
ConfigHandler class.

Class

ConfigHandler
ConfigHandler class.

Namespace

Drupal\db_maintenance\Module\Config

Code

public static function getCronFrequency() {
  $val = \Drupal::config('db_maintenance.settings')
    ->get('cron_frequency');
  return $val;
}