Classes, traits, and interfaces - 10.3.x - drupal

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

File

core/core.api.php, line 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
RegionalForm class Drupal\system\Form core/modules/system/src/Form/RegionalForm.php Configure regional settings for this site. 1
RegionalSettingsFormTest class Drupal\Tests\system\Functional\Form core/modules/system/tests/src/Functional/Form/RegionalSettingsFormTest.php Tests the system_regional_settings form.
RegisterAccessCheck class Drupal\user\Access core/modules/user/src/Access/RegisterAccessCheck.php Access check for user registration routes. 2
RegisterAccessChecksPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterAccessChecksPass.php Adds services tagged 'access_check' to the access_manager service. 1
RegisterEntityResolversCompilerPass class Drupal\serialization core/modules/serialization/src/RegisterEntityResolversCompilerPass.php Adds services tagged 'entity_resolver' to the Serializer.
RegisterEventSubscribersPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php Registers all event subscribers to the event dispatcher. 1
RegisterForm class Drupal\user core/modules/user/src/RegisterForm.php Form handler for the user register forms.
RegisterSerializationClassesCompilerPass class Drupal\serialization core/modules/serialization/src/RegisterSerializationClassesCompilerPass.php Adds services tagged 'normalizer' and 'encoder' to the Serializer. 1 2
RegisterSerializationClassesCompilerPass class Drupal\jsonapi\DependencyInjection\Compiler core/modules/jsonapi/src/DependencyInjection/Compiler/RegisterSerializationClassesCompilerPass.php Adds services tagged JSON:API-only normalizers to the Serializer. 1
RegisterSerializationClassesCompilerPassTest class Drupal\Tests\serialization\Unit\CompilerPass core/modules/serialization/tests/src/Unit/CompilerPass/RegisterSerializationClassesCompilerPassTest.php @coversDefaultClass \Drupal\serialization\RegisterSerializationClassesCompilerPass[[api-linebreak]] @group serialization
RegisterServicesForDestructionPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php Adds services to the "kernel.destructable_services" container parameter. 1
RegisterStreamWrappersPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterStreamWrappersPass.php Adds services tagged 'stream_wrapper' to the stream_wrapper_manager service. 1
RegistrationWithUserFieldsTest class Drupal\Tests\user\FunctionalJavascript core/modules/user/tests/src/FunctionalJavascript/RegistrationWithUserFieldsTest.php Tests user registration forms with additional fields.
Registry class Drupal\Core\Theme core/lib/Drupal/Core/Theme/Registry.php Defines the theme registry service. 8 2
RegistryTest class Drupal\Tests\Core\Theme core/tests/Drupal/Tests/Core/Theme/RegistryTest.php @coversDefaultClass \Drupal\Core\Theme\Registry[[api-linebreak]] @group Theme 1
RegistryTest class Drupal\KernelTests\Core\Theme core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php Tests the behavior of the ThemeRegistry class.
RegressionTest class Drupal\KernelTests\Core\Database core/tests/Drupal/KernelTests/Core/Database/RegressionTest.php Regression tests cases for the database layer.
ReindexConfirm class Drupal\search\Form core/modules/search/src/Form/ReindexConfirm.php Provides the search reindex confirmation form. 1
RelatedResourceTypesTest class Drupal\Tests\jsonapi\Kernel\ResourceType core/modules/jsonapi/tests/src/Kernel/ResourceType/RelatedResourceTypesTest.php @coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceType[[api-linebreak]] @coversClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository[[api-linebreak]] @group jsonapi
Relationship class Drupal\jsonapi\JsonApiResource core/modules/jsonapi/src/JsonApiResource/Relationship.php Represents references from one resource object to other resource object(s). 4
RelationshipData class Drupal\jsonapi\JsonApiResource core/modules/jsonapi/src/JsonApiResource/RelationshipData.php Represents the data of a relationship object or relationship document.
RelationshipJoinInTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinInTest.php Tests the base relationship handler.
RelationshipJoinTestBase abstract class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php Provides a base class for a testing a relationship. 4
RelationshipNodeFileDataTest class Drupal\Tests\file\Kernel\Views core/modules/file/tests/src/Kernel/Views/RelationshipNodeFileDataTest.php Tests file on node relationship handler.
RelationshipNodeTermDataTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/RelationshipNodeTermDataTest.php Tests the taxonomy term on node relationship handler.
RelationshipNormalizer class Drupal\jsonapi\Normalizer core/modules/jsonapi/src/Normalizer/RelationshipNormalizer.php Normalizes a JSON:API relationship object. 1 2
RelationshipNormalizerTest class Drupal\Tests\jsonapi\Kernel\Normalizer core/modules/jsonapi/tests/src/Kernel/Normalizer/RelationshipNormalizerTest.php @coversDefaultClass \Drupal\jsonapi\Normalizer\RelationshipNormalizer[[api-linebreak]] @group jsonapi @group #slow
RelationshipPluginBase abstract class Drupal\views\Plugin\views\relationship core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php Relationship plugin base. 5 2
RelationshipRepresentativeNodeTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/RelationshipRepresentativeNodeTest.php Tests the representative node relationship for terms.
RelationshipRepresentativeNodeTest class Drupal\Tests\user\Kernel\Views core/modules/user/tests/src/Kernel/Views/RelationshipRepresentativeNodeTest.php Tests the representative node relationship for users.
RelationshipRouteAccessCheck final class Drupal\jsonapi\Access core/modules/jsonapi/src/Access/RelationshipRouteAccessCheck.php Defines a class to check access to related and relationship routes. 1 2
RelationshipTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php Tests the base relationship handler.
RelationshipUserFileDataTest class Drupal\Tests\file\Kernel\Views core/modules/file/tests/src/Kernel/Views/RelationshipUserFileDataTest.php Tests file on user relationship handler.
RelationshipUserImageDataTest class Drupal\Tests\image\Kernel\Views core/modules/image/tests/src/Kernel/Views/RelationshipUserImageDataTest.php Tests image on user relationship handler.
Relative final class Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Attribute/Relative.php #[SubDir\SubDirAttribute]
ReliableQueueInterface interface Drupal\Core\Queue core/lib/Drupal/Core/Queue/ReliableQueueInterface.php Reliable queue interface. 1
RemoteFileDeleteRecursiveTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php Tests the unmanaged file delete recursive function.
RemoteFileDeleteTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteTest.php Tests the unmanaged file delete function.
RemoteFileDirectoryTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileDirectoryTest.php Tests operations dealing with directories.
RemoteFileMoveTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileMoveTest.php Tests the unmanaged file move function.
RemoteFileSaveDataTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileSaveDataTest.php Tests the unmanaged file save data function.
RemoteFileSaveUploadTest class Drupal\Tests\file\Functional core/modules/file/tests/src/Functional/RemoteFileSaveUploadTest.php Tests the file uploading functions.
RemoteFileScanDirectoryTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileScanDirectoryTest.php Tests \Drupal\Core\File\FileSystemInterface::scanDirectory().
RemoteFileUnmanagedCopyTest class Drupal\KernelTests\Core\File core/tests/Drupal/KernelTests/Core/File/RemoteFileUnmanagedCopyTest.php Tests the unmanaged file copy function.
RemoveBlockForm class Drupal\layout_builder\Form core/modules/layout_builder/src/Form/RemoveBlockForm.php Provides a form to confirm the removal of a block. 1
RemoveCheckToStringNodeVisitor final class Drupal\Core\Template core/lib/Drupal/Core/Template/RemoveCheckToStringNodeVisitor.php Defines a TwigNodeVisitor that replaces CheckToStringNodes.
RemoveCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/RemoveCommand.php AJAX command for calling the jQuery remove() method. 3
RemovedPostUpdateNameException class Drupal\Core\Update core/lib/Drupal/Core/Update/RemovedPostUpdateNameException.php An exception thrown for removed post-update functions. 1
RemoveRoleUser class Drupal\user\Plugin\Action core/modules/user/src/Plugin/Action/RemoveRoleUser.php Removes a role from a user. 1
RemoveRoleUserTest class Drupal\Tests\user\Unit\Plugin\Action core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php @coversDefaultClass \Drupal\user\Plugin\Action\RemoveRoleUser[[api-linebreak]] @group user

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.