function drush_node_revision_delete_nrd_get_time in Node Revision Delete 8
Same name and namespace in other branches
- 7.3 node_revision_delete.drush.inc \drush_node_revision_delete_nrd_get_time()
Callback for the nrd-delete-get-time command.
File
- ./
node_revision_delete.drush.inc, line 282 - Drush commands related to the Node Revision Delete module.
Code
function drush_node_revision_delete_nrd_get_time() {
// Getting the config.
$config = $config = \Drupal::config('node_revision_delete.settings');
// Getting the values from the config.
$time = $config
->get('node_revision_delete_time');
$time = \Drupal::service('node_revision_delete')
->getTimeValues($time);
$message = dt('The frequency with which to delete revisions while cron is running is: @time.', [
'@time' => $time,
]);
drush_print($message);
}