You are here

public static function ConfigHandler::getUseTimeInterval 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::getUseTimeInterval()
  2. 2.0.x src/Module/Config/ConfigHandler.php \Drupal\db_maintenance\Module\Config\ConfigHandler::getUseTimeInterval()

Returns UseTimeInterval variable.

3 calls to ConfigHandler::getUseTimeInterval()
CommonHookHandler::hookCron in src/Module/Hook/CommonHookHandler.php
Implements hook_cron().
DbMaintenanceAdminSettings::buildForm in src/Form/DbMaintenanceAdminSettings.php
Form constructor.
IntervalHandler::isTimeIntervalConfirmed in src/Module/Interval/IntervalHandler.php
Checks, if table optimization is allowed in consistency with Time Interval configuration.

File

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

Class

ConfigHandler
ConfigHandler class.

Namespace

Drupal\db_maintenance\Module\Config

Code

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