64 string references to current_user
- AccountSwitcherTest::testAccountSwitching in core/
tests/ Drupal/ KernelTests/ Core/ Session/ AccountSwitcherTest.php - Tests the account switching, switching to and switching back.
- AllowedValuesConstraintValidator::create in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AllowedValuesConstraintValidator.php - Instantiates a new instance of this class.
- ArgumentDefaultTest::testArgumentDefaultNoOptions in core/
modules/ views/ tests/ src/ Functional/ Plugin/ ArgumentDefaultTest.php - Tests the use of a default argument plugin that provides no options.
- BlockBaseTest::testContextMapping in core/
tests/ Drupal/ KernelTests/ Core/ Block/ BlockBaseTest.php - Tests that blocks config form have context mapping, and it is stored in configuration.
- ChooseBlockController::create in core/
modules/ layout_builder/ src/ Controller/ ChooseBlockController.php - Instantiates a new instance of this class.
- CommentDefaultFormatterCacheTagsTest::setUp in core/
modules/ comment/ tests/ src/ Kernel/ CommentDefaultFormatterCacheTagsTest.php - CommentForm::create in core/
modules/ comment/ src/ CommentForm.php - Instantiates a new instance of this class.
- CommentLockTest::testLocks in core/
modules/ comment/ tests/ src/ Unit/ Entity/ CommentLockTest.php - Tests the lock behavior.
- CommentStorage::createInstance in core/
modules/ comment/ src/ CommentStorage.php - Instantiates a new instance of this entity handler.
- CommentViewBuilder::createInstance in core/
modules/ comment/ src/ CommentViewBuilder.php - Instantiates a new instance of this entity handler.
- ContentTranslationHandler::createInstance in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - Instantiates a new instance of this entity handler.
- ControllerBase::currentUser in core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php - Returns the current user.
- ControllerBaseTest::testCreate in core/
tests/ Drupal/ KernelTests/ Core/ Controller/ ControllerBaseTest.php - Tests create.
- CopyTest::testEntityStorageException in core/
modules/ file/ tests/ src/ Kernel/ CopyTest.php - Tests for entity storage exception.
- DbUpdateController::create in core/
modules/ system/ src/ Controller/ DbUpdateController.php - Instantiates a new instance of the implementing class using autowiring.
- DeleteMultipleForm::create in core/
lib/ Drupal/ Core/ Entity/ Form/ DeleteMultipleForm.php - Instantiates a new instance of this class.
- Drupal::currentUser in core/
lib/ Drupal.php - Gets the current active user.
- DrupalKernel::initializeContainer in core/
lib/ Drupal/ Core/ DrupalKernel.php - Initializes the service container.
- DrupalKernel::resetContainer in core/
lib/ Drupal/ Core/ DrupalKernel.php - Force a container reset.
- DrupalTest::testCurrentUser in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the currentUser() method.
- EntityTypeInfo::create in core/
modules/ content_moderation/ src/ EntityTypeInfo.php - Instantiates a new instance of this class.
- FieldTypePluginManagerTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Field/ FieldTypePluginManagerTest.php - FileRepositoryTest::testEntityStorageException in core/
modules/ file/ tests/ src/ Kernel/ FileRepositoryTest.php - Tests for entity storage exception.
- FileSizeLimitConstraintValidator::create in core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileSizeLimitConstraintValidator.php - Instantiates a new instance of this class.
- FileUploadHandlerTest::testLockAcquireException in core/
modules/ file/ tests/ src/ Kernel/ FileUploadHandlerTest.php - Test the lock acquire exception.
- FormBuilder::currentUser in core/
lib/ Drupal/ Core/ Form/ FormBuilder.php - Gets the current active user.
- FormBuilderTest::testFormTokenCacheability in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Tests form token cacheability.
- HandlerFilterCurrentUserTest::setUp in core/
modules/ user/ tests/ src/ Kernel/ Views/ HandlerFilterCurrentUserTest.php - HelpSearch::create in core/
modules/ help/ src/ Plugin/ Search/ HelpSearch.php - Instantiates a new instance of the implementing class using autowiring.
- ImageFormatter::create in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php - Instantiates a new instance of the implementing class using autowiring.
- LanguageServiceProvider::register in core/
modules/ language/ src/ LanguageServiceProvider.php - Registers services to the container.
- LinkAccessConstraintValidator::create in core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkAccessConstraintValidator.php - Instantiates a new instance of this class.
- LocaleLookupTest::setUp in core/
modules/ locale/ tests/ src/ Unit/ LocaleLookupTest.php - LocaleLookupTest::testGetCid in core/
modules/ locale/ tests/ src/ Unit/ LocaleLookupTest.php - Tests get cid.
- MediaLibraryContextualFilterTest::setUp in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ MediaLibraryContextualFilterTest.php - MediaLibraryWidget::create in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Instantiates a new instance of the implementing class using autowiring.
- MediaThumbnailFormatter::create in core/
modules/ media/ src/ Plugin/ Field/ FieldFormatter/ MediaThumbnailFormatter.php - Instantiates a new instance of the implementing class using autowiring.
- ModerationStateConstraintValidator::create in core/
modules/ content_moderation/ src/ Plugin/ Validation/ Constraint/ ModerationStateConstraintValidator.php - Instantiates a new instance of this class.
- ModulesListForm::create in core/
modules/ system/ src/ Form/ ModulesListForm.php - Instantiates a new instance of this class.
- MoveTest::testEntityStorageException in core/
modules/ file/ tests/ src/ Kernel/ MoveTest.php - Tests for entity storage exception.
- NodeForm::create in core/
modules/ node/ src/ Form/ NodeForm.php - Instantiates a new instance of this class.
- NodeSearch::create in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Instantiates a new instance of the implementing class using autowiring.
- NodeViewController::create in core/
modules/ node/ src/ Controller/ NodeViewController.php - Instantiates a new instance of this class.
- ProtectedUserFieldConstraintValidator::create in core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ ProtectedUserFieldConstraintValidator.php - Instantiates a new instance of this class.
- ResponsiveImageFormatter::create in core/
modules/ responsive_image/ src/ Plugin/ Field/ FieldFormatter/ ResponsiveImageFormatter.php - Instantiates a new instance of the implementing class using autowiring.
- RevisionDeleteForm::create in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php - Instantiates a new instance of this class.
- RevisionRevertForm::create in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionRevertForm.php - Instantiates a new instance of this class.
- SectionRenderTest::setUp in core/
modules/ layout_builder/ tests/ src/ Unit/ SectionRenderTest.php - SyslogTest::testSyslogWriting in core/
modules/ syslog/ tests/ src/ Kernel/ SyslogTest.php - Tests syslog writing.
- SystemBrandingOffCanvasForm::create in core/
modules/ system/ src/ Form/ SystemBrandingOffCanvasForm.php - Instantiates a new instance of this class.
- TaxonomyIndexTid::create in core/
modules/ taxonomy/ src/ Plugin/ views/ filter/ TaxonomyIndexTid.php - Instantiates a new instance of the implementing class using autowiring.
- TokenTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Utility/ TokenTest.php - TokenTest::testReplaceWithBubbleableMetadataObject in core/
tests/ Drupal/ Tests/ Core/ Utility/ TokenTest.php - Tests replace with bubbleable metadata object.
- TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata in core/
tests/ Drupal/ Tests/ Core/ Utility/ TokenTest.php - Tests replace with hook tokens alter with bubbleable metadata.
- TokenTest::testReplaceWithHookTokensWithBubbleableMetadata in core/
tests/ Drupal/ Tests/ Core/ Utility/ TokenTest.php - Tests replace with hook tokens with bubbleable metadata.
- UpdateKernel::handleAccess in core/
lib/ Drupal/ Core/ Update/ UpdateKernel.php - Checks if the current user has rights to access updates page.
- UpdateMailTest::testUpdateEmail in core/
modules/ update/ tests/ src/ Unit/ UpdateMailTest.php - Test the subject and body of update text.
- UserMailRequiredValidatorTest::createValidator in core/
modules/ user/ tests/ src/ Unit/ Plugin/ Validation/ Constraint/ UserMailRequiredValidatorTest.php - Creates a validator instance.
- UserRegistrationResource::create in core/
modules/ user/ src/ Plugin/ rest/ resource/ UserRegistrationResource.php - Instantiates a new instance of the implementing class using autowiring.
- UserSearch::create in core/
modules/ user/ src/ Plugin/ Search/ UserSearch.php - Instantiates a new instance of the implementing class using autowiring.
- views.view.test_plugin_argument_default_current_user.yml in core/
modules/ user/ tests/ modules/ user_test_views/ test_views/ views.view.test_plugin_argument_default_current_user.yml - core/modules/user/tests/modules/user_test_views/test_views/views.view.test_plugin_argument_default_current_user.yml
- ViewsBlockBase::create in core/
modules/ views/ src/ Plugin/ Block/ ViewsBlockBase.php - Instantiates a new instance of the implementing class using autowiring.
- ViewUIObjectTest::testIsLocked in core/
modules/ views_ui/ tests/ src/ Unit/ ViewUIObjectTest.php - Tests the isLocked method.
- VocabularyListBuilder::createInstance in core/
modules/ taxonomy/ src/ VocabularyListBuilder.php - Instantiates a new instance of this entity handler.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.