Primary tabs

Introduction to classes

A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.

See also

Objected-oriented programming conventions

Namesort ascending Type Namespace Location Description Direct uses Use statements Strings
UuidTest class Drupal\Tests\Component\Uuid core/tests/Drupal/Tests/Component/Uuid/UuidTest.php Tests the handling of Universally Unique Identifiers (UUIDs).
UuidResolverTest class Drupal\Tests\serialization\Unit\EntityResolver core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php @coversDefaultClass \Drupal\serialization\EntityResolver\UuidResolver @group serialization
UuidResolver class Drupal\serialization\EntityResolver core/modules/serialization/src/EntityResolver/UuidResolver.php Resolves entities from data that contains an entity UUID. 1 2
UuidReferenceInterface interface Drupal\serialization\EntityResolver core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php Interface for extracting UUID from entity reference data when denormalizing.
UuidItemTest class Drupal\Tests\field\Kernel\KernelString core/modules/field/tests/src/Kernel/KernelString/UuidItemTest.php Tests the UUID field.
UuidInterface interface Drupal\Component\Uuid core/lib/Drupal/Component/Uuid/UuidInterface.php Interface for generating UUIDs. 3 11
UuidFormatterTest class Drupal\Tests\field\Kernel\KernelString core/modules/field/tests/src/Kernel/KernelString/UuidFormatterTest.php Tests the output of a UUID field.
Uuid class Drupal\Component\Uuid core/lib/Drupal/Component/Uuid/Uuid.php UUID Helper methods. 6
UsingNonInstalledTraitClass class Drupal\plugin_test\Plugin\plugin_test\custom_annotation core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/UsingNonInstalledTraitClass.php This class does not have a plugin attribute or plugin annotation on purpose.
UsesCommandRequirements class Drupal\BuildTests\Framework\Tests core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php
UserXmlCookieTest class Drupal\Tests\user\Functional\Rest core/modules/user/tests/src/Functional/Rest/UserXmlCookieTest.php @group rest @group #slow
UserXmlBasicAuthTest class Drupal\Tests\user\Functional\Rest core/modules/user/tests/src/Functional/Rest/UserXmlBasicAuthTest.php @group rest @group #slow
UserXmlAnonTest class Drupal\Tests\user\Functional\Rest core/modules/user/tests/src/Functional/Rest/UserXmlAnonTest.php @group rest @group #slow
UserViewsFieldAccessTest class Drupal\Tests\user\Kernel\Views core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php Tests base field access in Views for the user entity.
UserViewsDataTest class Drupal\Tests\user\Kernel\Views core/modules/user/tests/src/Kernel/Views/UserViewsDataTest.php Contains tests related to the views data for the user entity type.
UserViewsData class Drupal\user core/modules/user/src/UserViewsData.php Provides the views data for the user entity type.
UserValidationTest class Drupal\Tests\user\Kernel core/modules/user/tests/src/Kernel/UserValidationTest.php Verify that user validity checks behave as designed.
UserUpdateRoleMigrateTest class Drupal\Tests\user\Functional\Update core/modules/user/tests/src/Functional/Update/UserUpdateRoleMigrateTest.php Tests user_update_10000() upgrade path.
UserUpdate8002 class Drupal\user\Plugin\migrate\process core/modules/user/src/Plugin/migrate/process/UserUpdate8002.php
UserUpdate7002 class Drupal\user\Plugin\migrate\process\d6 core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php
UserUid class Drupal\tracker\Plugin\views\filter core/modules/tracker/src/Plugin/views/filter/UserUid.php
UserUid class Drupal\comment\Plugin\views\filter core/modules/comment/src/Plugin/views/filter/UserUid.php
UserTranslationUITest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/UserTranslationUITest.php Tests the User Translation UI.
UserTrackerTab class Drupal\tracker\Plugin\Menu core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php Provides route parameters needed to link to the current user tracker tab. 1
UserTokenReplaceTest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/UserTokenReplaceTest.php Tests the replacement of user tokens.
UserTimeZoneTest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/UserTimeZoneTest.php Set a user time zone and verify that dates are displayed in local time.
UserTestBase abstract class Drupal\Tests\user\Functional\Views core/modules/user/tests/src/Functional/Views/UserTestBase.php @todo. 7
UserTest class Drupal\Tests\user\Kernel\Plugin\migrate\source\d7 core/modules/user/tests/src/Kernel/Plugin/migrate/source/d7/UserTest.php Tests the d7_user source plugin.
UserTest class Drupal\Tests\user\Kernel\Plugin\migrate\source\d6 core/modules/user/tests/src/Kernel/Plugin/migrate/source/d6/UserTest.php Tests the d6_user source plugin.
UserTest class Drupal\Tests\user\Unit\Plugin\Core\Entity core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php @coversDefaultClass \Drupal\user\Entity\User @group user
UserTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/UserTest.php JSON:API integration test for the "User" content entity type.
UserSubAdminTest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/UserSubAdminTest.php Test 'sub-admin' account with permission to edit some users but without 'administer users' permission.
UserStorageSchema class Drupal\user core/modules/user/src/UserStorageSchema.php Defines the user schema handler.
UserStorageInterface interface Drupal\user core/modules/user/src/UserStorageInterface.php Defines an interface for user entity storage classes. 1 4
UserStorage class Drupal\user core/modules/user/src/UserStorage.php Controller class for users.
UserSessionTest class Drupal\Tests\Core\Session core/tests/Drupal/Tests/Core/Session/UserSessionTest.php @coversDefaultClass \Drupal\Core\Session\UserSession @group Session 1 1
UserSession class Drupal\Core\Session core/lib/Drupal/Core/Session/UserSession.php 1 10
UserSearchTest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/UserSearchTest.php Verifies that sensitive information is hidden from unauthorized users.
UserSaveTest class Drupal\Tests\user\Kernel core/modules/user/tests/src/Kernel/UserSaveTest.php Tests account saving for arbitrary new uid.
UserSaveStatusTest class Drupal\Tests\user\Kernel core/modules/user/tests/src/Kernel/UserSaveStatusTest.php Tests user saving status.
UserRow class Drupal\user\Plugin\views\row core/modules/user/src/Plugin/views/row/UserRow.php
UserRouteProvider class Drupal\user\Entity core/modules/user/src/Entity/UserRouteProvider.php Provides routes for the user entity.
UserRouteAlterSubscriber class Drupal\serialization\EventSubscriber core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php Alters user authentication routes to support additional serialization formats. 2
UserRoleTest class Drupal\Tests\user\Kernel\Views core/modules/user/tests/src/Kernel/Views/UserRoleTest.php Tests rendering when the role is numeric.
UserRolesPermissionsTest class Drupal\KernelTests\Core\Session core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php Test case for getting permissions from user roles.
UserRolesCacheContextTest class Drupal\Tests\Core\Cache\Context core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\UserRolesCacheContext @group Cache
UserRolesCacheContext class Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Defines the UserRolesCacheContext service, for "per role" caching. 1 2
UserRolesAssignmentTest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Tests that users can be assigned and unassigned roles.
UserRolesAccessPolicyTest class Drupal\Tests\Core\Session core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php @coversDefaultClass \Drupal\Core\Session\UserRolesAccessPolicy @group Session
UserRoleEntityTest class Drupal\Tests\user\Kernel core/modules/user/tests/src/Kernel/UserRoleEntityTest.php @group user @coversDefaultClass \Drupal\user\Entity\Role

Pages

Other projects