Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::time

Returns the time service.

Return value

\Drupal\Component\Datetime\TimeInterface The time service.

2 calls to Drupal::time()
MigrateUpgradeImportBatch::onPostRowDelete in core/modules/migrate_drupal_ui/src/Batch/MigrateUpgradeImportBatch.php
Reacts to item deletion.
MigrateUpgradeImportBatch::onPostRowSave in core/modules/migrate_drupal_ui/src/Batch/MigrateUpgradeImportBatch.php
Reacts to item import.

File

core/lib/Drupal.php, line 734

Class

Drupal
Static Service Container wrapper.

Code

public static function time() {
    return static::getContainer()->get('datetime.time');
}
RSS feed
Powered by Drupal