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');
}