138 uses of REQUEST_TIME in Drupal 10
- AliasManager::getRequestTime in core/
modules/ path_alias/ src/ AliasManager.php - Wrapper method for REQUEST_TIME constant.
- ApcuBackend::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ ApcuBackend.php - ApcuBackend::invalidateMultiple in core/
lib/ Drupal/ Core/ Cache/ ApcuBackend.php - ApcuBackend::prepareItem in core/
lib/ Drupal/ Core/ Cache/ ApcuBackend.php - Prepares a cached item.
- AssertViewsCacheTagsTrait::assertViewsCacheTags in core/
modules/ views/ src/ Tests/ AssertViewsCacheTagsTrait.php - Asserts a view's result & render cache items' cache tags.
- AssertViewsCacheTagsTrait::assertViewsCacheTagsFromStaticRenderArray in core/
modules/ views/ src/ Tests/ AssertViewsCacheTagsTrait.php - Asserts a view's result & render cache items' cache tags.
- BatchStorage::cleanup in core/
lib/ Drupal/ Core/ Batch/ BatchStorage.php - BatchStorage::doCreate in core/
lib/ Drupal/ Core/ Batch/ BatchStorage.php - Saves a batch.
- BlockContentRevisionsTest::setUp in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentRevisionsTest.php - Sets the test up.
- BlockContentSaveTest::testDeterminingChanges in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentSaveTest.php - Tests determining changes in hook_block_presave().
- BulkFormTest::testBulkForm in core/
modules/ views/ tests/ src/ Functional/ BulkFormTest.php - Tests the bulk form.
- ChangedItem::preSave in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ ChangedItem.php - Defines custom presave behavior for field values.
- ChangedTestItem::preSave in core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Field/ FieldType/ ChangedTestItem.php - Defines custom presave behavior for field values.
- ClickSortingAJAXTest::setUp in core/
modules/ views/ tests/ src/ FunctionalJavascript/ ClickSortingAJAXTest.php - CommentBlockTest::testRecentCommentBlock in core/
modules/ comment/ tests/ src/ Functional/ CommentBlockTest.php - Tests the recent comments block.
- CommentForm::buildEntity in core/
modules/ comment/ src/ CommentForm.php - Builds an updated entity object based upon the submitted form values.
- CommentStatistics::create in core/
modules/ comment/ src/ CommentStatistics.php - CommentStatistics::update in core/
modules/ comment/ src/ CommentStatistics.php - CommentTranslationUITest::doTestAuthoringInfo in core/
modules/ comment/ tests/ src/ Functional/ CommentTranslationUITest.php - ContentEntityChangedTest::testChanged in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityChangedTest.php - Tests basic EntityChangedInterface functionality.
- ContentEntityChangedTest::testRevisionChanged in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityChangedTest.php - Tests revisionable EntityChangedInterface functionality.
- ContentTranslationController::prepareTranslation in core/
modules/ content_translation/ src/ Controller/ ContentTranslationController.php - Populates target values with the source values.
- ContentTranslationHandler::entityFormAlter in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - ContentTranslationHandler::entityFormEntityBuild in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - Entity builder method.
- ContentTranslationHandler::entityFormSubmit in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - Form submission handler for ContentTranslationHandler::entityFormAlter().
- ContentTranslationUITestBase::doTestAuthoringInfo in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationUITestBase.php - Tests the translation authoring information.
- CreatedItem::applyDefaultValue in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ CreatedItem.php - Applies the default value.
- CssCollectionOptimizer::deleteAll in core/
lib/ Drupal/ Core/ Asset/ CssCollectionOptimizer.php - DatabaseBackend::doInsert in core/
lib/ Drupal/ Core/ Flood/ DatabaseBackend.php - Inserts an event into the flood table.
- DatabaseBackend::garbageCollection in core/
lib/ Drupal/ Core/ Flood/ DatabaseBackend.php - DatabaseBackend::garbageCollection in core/
lib/ Drupal/ Core/ Cache/ DatabaseBackend.php - DatabaseBackend::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ DatabaseBackend.php - DatabaseBackend::invalidateMultiple in core/
lib/ Drupal/ Core/ Cache/ DatabaseBackend.php - DatabaseBackend::isAllowed in core/
lib/ Drupal/ Core/ Flood/ DatabaseBackend.php - DatabaseBackend::prepareItem in core/
lib/ Drupal/ Core/ Cache/ DatabaseBackend.php - Prepares a cached item.
- DatabaseStorageExpirable::doSetWithExpire in core/
lib/ Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - Saves a value for a given key with a time to live.
- DatabaseStorageExpirable::getAll in core/
lib/ Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - DatabaseStorageExpirable::getMultiple in core/
lib/ Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - DatabaseStorageExpirable::has in core/
lib/ Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - Date::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ field/ Date.php - Date::getDefaultArgument in core/
modules/ views/ src/ Plugin/ views/ argument/ Date.php - Set the empty argument value to the current date, formatted appropriately for this argument.
- Date::render in core/
modules/ views/ src/ Plugin/ views/ field/ Date.php - DateFormat::getTranslationElement in core/
modules/ config_translation/ src/ FormElement/ DateFormat.php - Returns the translation form element for a given configuration definition.
- DateFormatDeleteForm::getQuestion in core/
modules/ system/ src/ Form/ DateFormatDeleteForm.php - DateFormatEditForm::form in core/
modules/ system/ src/ Form/ DateFormatEditForm.php - Gets the actual form array to be built.
- DateFormatListBuilder::buildRow in core/
modules/ system/ src/ DateFormatListBuilder.php - Builds a row for an entity in the entity listing.
- DateHelper::years in core/
lib/ Drupal/ Core/ Datetime/ DateHelper.php - Constructs an array of years in a specified range.
- DateRangeItem::generateSampleValue in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldType/ DateRangeItem.php - Generates placeholder field values.
- DateTimeFieldTest::testDateField in core/
modules/ datetime/ tests/ src/ Functional/ DateTimeFieldTest.php - Tests date field functionality.
- DateTimeFieldTest::testDatetimeField in core/
modules/ datetime/ tests/ src/ Functional/ DateTimeFieldTest.php - Tests date and time field.
- DateTimeItem::generateSampleValue in core/
modules/ datetime/ src/ Plugin/ Field/ FieldType/ DateTimeItem.php - Generates placeholder field values.
- DbLogTest::testDBLogAddAndClear in core/
modules/ dblog/ tests/ src/ Functional/ DbLogTest.php - Tests the addition and clearing of log events through the admin interface.
- DbLogTest::testLogEventPage in core/
modules/ dblog/ tests/ src/ Functional/ DbLogTest.php - Tests individual log event page.
- DefaultViewRecentCommentsTest::setUp in core/
modules/ comment/ tests/ src/ Functional/ Views/ DefaultViewRecentCommentsTest.php - DefaultViewsTest::setUp in core/
modules/ views/ tests/ src/ Functional/ DefaultViewsTest.php - DefaultViewsTest::testArchiveView in core/
modules/ views/ tests/ src/ Functional/ DefaultViewsTest.php - Tests the archive view.
- DeleteTest::testCronDeleteNonExistingTemporary in core/
modules/ file/ tests/ src/ Kernel/ DeleteTest.php - Tries to run cron deletion on file deleted from the file-system.
- DeleteTest::testInUse in core/
modules/ file/ tests/ src/ Kernel/ DeleteTest.php - Tries deleting a file that is in use.
- EntityCrudHookTest::testCommentHooks in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityCrudHookTest.php - Tests hook invocations for CRUD operations on comments.
- EntityCrudHookTest::testFileHooks in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityCrudHookTest.php - Tests hook invocations for CRUD operations on files.
- EntityCrudHookTest::testNodeHooks in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityCrudHookTest.php - Tests hook invocations for CRUD operations on nodes.
- EntityCrudHookTest::testUserHooks in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityCrudHookTest.php - Tests hook invocations for CRUD operations on users.
- EntityTypeConstraintsTest::testConstraintValidation in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityTypeConstraintsTest.php - Tests entity constraints are validated.
- FakeLogEntries::generateLogEntries in core/
modules/ dblog/ tests/ src/ Functional/ FakeLogEntries.php - Generates a number of random database log events.
- FieldDropbuttonTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldDropbuttonTest.php - FieldFieldTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldFieldTest.php - FileFieldPathTest::testUploadPath in core/
modules/ file/ tests/ src/ Functional/ FileFieldPathTest.php - Tests the normal formatter display on node display.
- FileFieldRevisionTest::testRevisions in core/
modules/ file/ tests/ src/ Functional/ FileFieldRevisionTest.php - Tests creating multiple revisions of a node and managing attached files.
- FilterDateTimeTest::setUp in core/
modules/ datetime/ tests/ src/ Kernel/ Views/ FilterDateTimeTest.php - FinishResponseSubscriber::setResponseCacheable in core/
lib/ Drupal/ Core/ EventSubscriber/ FinishResponseSubscriber.php - Add Cache-Control and Expires headers to a cacheable response.
- FrontPageTest::testFrontPage in core/
modules/ node/ tests/ src/ Functional/ Views/ FrontPageTest.php - Tests the frontpage.
- FunctionalTestSetupTrait::prepareRequestForGenerator in core/
lib/ Drupal/ Core/ Test/ FunctionalTestSetupTrait.php - Creates a mock request and sets it on the generator.
- GarbageCollectionTest::testGarbageCollection in core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ GarbageCollectionTest.php - Tests garbage collection.
- GenericCacheBackendUnitTestBase::testGetMultiple in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ GenericCacheBackendUnitTestBase.php - Tests Drupal\Core\Cache\CacheBackendInterface::getMultiple().
- GenericCacheBackendUnitTestBase::testSetGet in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ GenericCacheBackendUnitTestBase.php - Tests the get and set methods of Drupal\Core\Cache\CacheBackendInterface.
- GenericCacheBackendUnitTestBase::testSetMultiple in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ GenericCacheBackendUnitTestBase.php - Tests \Drupal\Core\Cache\CacheBackendInterface::setMultiple().
- HistoryTimestampTest::testHandlers in core/
modules/ history/ tests/ src/ Kernel/ Views/ HistoryTimestampTest.php - Tests the handlers.
- HistoryUserTimestamp::query in core/
modules/ history/ src/ Plugin/ views/ filter/ HistoryUserTimestamp.php - Add this filter to the query.
- hook_entity_insert in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Respond to creation of a new entity.
- hook_ENTITY_TYPE_insert in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Respond to creation of a new entity of a particular type.
- hook_ENTITY_TYPE_update in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Respond to updates to an entity of a particular type.
- hook_entity_update in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Respond to updates to an entity.
- ItemsPerPageTest::testItemsPerPage in core/
modules/ views/ tests/ src/ Functional/ Wizard/ ItemsPerPageTest.php - Tests the number of items per page.
- JsCollectionOptimizer::deleteAll in core/
lib/ Drupal/ Core/ Asset/ JsCollectionOptimizer.php - JsCollectionRenderer::render in core/
lib/ Drupal/ Core/ Asset/ JsCollectionRenderer.php - This class evaluates the aggregation enabled/disabled condition on a group by group basis by testing whether an aggregate file has been made for the group rather than by testing the site-wide aggregation setting. This allows this class to work…
- KeyValueDatabaseExpirableFactory::garbageCollection in core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueDatabaseExpirableFactory.php - Deletes expired items.
- LocaleUpdateBase::makePoFile in core/
modules/ locale/ tests/ src/ Functional/ LocaleUpdateBase.php - Creates a translation file and tests its timestamp.
- LocaleUpdateBase::setUp in core/
modules/ locale/ tests/ src/ Functional/ LocaleUpdateBase.php - LocaleUpdateCronTest::testUpdateCron in core/
modules/ locale/ tests/ src/ Functional/ LocaleUpdateCronTest.php - Tests interface translation update using cron.
- LocaleUpdateInterfaceTest::testInterface in core/
modules/ locale/ tests/ src/ Functional/ LocaleUpdateInterfaceTest.php - Tests the user interfaces of the interface translation update system.
- MemoryBackend::getRequestTime in core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php - Wrapper method for REQUEST_TIME constant.
- MenuLinksTest::testCreateLink in core/
modules/ menu_link_content/ tests/ src/ Kernel/ MenuLinksTest.php - Assert that a link entity's created timestamp is set.
- MigrateBlockContentTest::testBlockMigration in core/
modules/ block_content/ tests/ src/ Kernel/ Migrate/ d6/ MigrateBlockContentTest.php - Tests the Drupal 6 custom block to Drupal 8 migration.
- MigrateCustomBlockContentTranslationTest::testCustomBlockContentTranslation in core/
modules/ block_content/ tests/ src/ Kernel/ Migrate/ d6/ MigrateCustomBlockContentTranslationTest.php - Tests the Drupal 6 i18n custom block strings to Drupal 8 migration.
- 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.
- NodeAdminTest::testContentAdminSort in core/
modules/ node/ tests/ src/ Functional/ NodeAdminTest.php - Tests that the table sorting works on the content admin pages.
- NodeIntegrationTest::testNodeViewTypeArgument in core/
modules/ node/ tests/ src/ Functional/ Views/ NodeIntegrationTest.php - Tests basic node view with a node type argument.
- NodeRevisionsAllTest::testRevisions in core/
modules/ node/ tests/ src/ Functional/ NodeRevisionsAllTest.php - Checks node revision operations.
- NodeRevisionsTest::testRevisions in core/
modules/ node/ tests/ src/ Functional/ NodeRevisionsTest.php - Checks node revision related operations.
- NodeRevisionWizardTest::testViewAdd in core/
modules/ node/ tests/ src/ Functional/ Views/ Wizard/ NodeRevisionWizardTest.php - Tests creating a node revision view.
- NodeSaveTest::testTimestamps in core/
modules/ node/ tests/ src/ Functional/ NodeSaveTest.php - Verifies accuracy of the "created" and "changed" timestamp functionality.
- NodeTranslationUITest::doTestAuthoringInfo in core/
modules/ node/ tests/ src/ Functional/ NodeTranslationUITest.php - PagerTest::testPager in core/
modules/ views/ tests/ src/ Functional/ Wizard/ PagerTest.php - Tests the pager option.
- PhpBackend::invalidateByHash in core/
lib/ Drupal/ Core/ Cache/ PhpBackend.php - Invalidate one cache item.
- PhpBackend::prepareItem in core/
lib/ Drupal/ Core/ Cache/ PhpBackend.php - Prepares a cached item.
- ReviewForm::submitForm in core/
modules/ migrate_drupal_ui/ src/ Form/ ReviewForm.php - Form submission handler.
- SearchIndex::markForReindex in core/
modules/ search/ src/ SearchIndex.php - SearchMultilingualEntityTest::testMultilingualSearch in core/
modules/ search/ tests/ src/ Functional/ SearchMultilingualEntityTest.php - Tests the indexing throttle and search results with multilingual nodes.
- SearchRankingTest::testRankings in core/
modules/ search/ tests/ src/ Functional/ SearchRankingTest.php - SessionHandler::gc in core/
lib/ Drupal/ Core/ Session/ SessionHandler.php - SessionHandler::write in core/
lib/ Drupal/ Core/ Session/ SessionHandler.php - SessionManager::destroy in core/
lib/ Drupal/ Core/ Session/ SessionManager.php - SortingTest::testSorting in core/
modules/ views/ tests/ src/ Functional/ Wizard/ SortingTest.php - Tests the sorting functionality.
- TempStoreDatabaseTest::testSharedTempStore in core/
tests/ Drupal/ KernelTests/ Core/ TempStore/ TempStoreDatabaseTest.php - Tests the SharedTempStore API.
- Time::cacheExpire in core/
modules/ views/ src/ Plugin/ views/ cache/ Time.php - Determine the expiration time of the cache type, or NULL if no expire.
- TimestampFormatter::settingsForm in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ TimestampFormatter.php - Returns a form to configure settings for the formatter.
- TimestampFormatterTest::testTimestampFormatter in core/
modules/ field/ tests/ src/ Kernel/ Timestamp/ TimestampFormatterTest.php - Tests TimestampFormatter.
- TokenReplaceKernelTest::testSystemDateTokenReplacement in core/
modules/ system/ tests/ src/ Kernel/ Token/ TokenReplaceKernelTest.php - Tests the generation of all system date tokens.
- ToolbarController::subtreesAjax in core/
modules/ toolbar/ src/ Controller/ ToolbarController.php - Returns an AJAX response to render the toolbar subtrees.
- TranslationStatusForm::submitForm in core/
modules/ locale/ src/ Form/ TranslationStatusForm.php - Form submission handler.
- TwigPhpStorageCache::write in core/
lib/ Drupal/ Core/ Template/ TwigPhpStorageCache.php - TypedDataTest::testGetAndSet in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php - Tests the basics around constructing and working with typed data objects.
- UpdateProcessor::createFetchTask in core/
modules/ update/ src/ UpdateProcessor.php - UpdateProcessor::processFetchTask in core/
modules/ update/ src/ UpdateProcessor.php - UsageTest::createTempFiles in core/
modules/ file/ tests/ src/ Kernel/ UsageTest.php - Create files for all the possible combinations of age and status.
- UserChangedTest::testChangedField in core/
modules/ user/ tests/ src/ Functional/ Views/ UserChangedTest.php - Tests changed field.
- UserController::confirmCancel in core/
modules/ user/ src/ Controller/ UserController.php - Confirms cancelling a user account via an email link.
- UserController::resetPassLogin in core/
modules/ user/ src/ Controller/ UserController.php - Validates user, hash, and timestamp; logs the user in if correct.
- UserCreateTest::testUserAdd in core/
modules/ user/ tests/ src/ Functional/ UserCreateTest.php - Create a user through the administration interface and ensure that it displays in the user list.
- UserEditTest::testUserEdit in core/
modules/ user/ tests/ src/ Functional/ UserEditTest.php - Tests user edit page.
- UserPasswordResetTest::setUp in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - UserPasswordResetTest::setUp in core/
modules/ user/ tests/ src/ FunctionalJavascript/ UserPasswordResetTest.php - UserPasswordResetTest::testUserPasswordReset in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - Tests password reset functionality.
- UserPasswordResetTest::testUserPasswordResetLoggedIn in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - Tests user password reset while logged in.
- UserPictureTest::testCreateDeletePicture in core/
modules/ user/ tests/ src/ Functional/ UserPictureTest.php - Tests creation, display, and deletion of user pictures.
- UserRegistrationTest::testRegistrationDefaultValues in core/
modules/ user/ tests/ src/ Functional/ UserRegistrationTest.php - UserRequestSubscriber::onKernelTerminate in core/
modules/ user/ src/ EventSubscriber/ UserRequestSubscriber.php - Updates the current user's last access time.