Classes, traits, and interfaces - 9.5.x - drupal
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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ReadOnlyStorageTest | class | Drupal\Tests\Core\Config | core/ |
@coversDefaultClass \Drupal\Core\Config\ReadOnlyStorage[[api-linebreak]] @group Config | ||||
ReadOnlyStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a read-only Drupal stream wrapper base class. | 1 | 1 | ||
ReadOnlyStreamWrapperTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the read-only stream wrapper write functions. | ||||
Rearrange | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a rearrange form for Views handlers. | ||||
RearrangeFieldsTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the reordering of fields via AJAX. | ||||
RearrangeFilter | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a rearrange form for Views filters. | 1 | |||
RearrangeFilterTest | class | Drupal\Tests\views_ui\Unit\Form\Ajax | core/ |
Unit tests for Views UI module functions. | ||||
RebuildScriptTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the rebuild script access and functionality. | ||||
RebuildTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests functionality of \Drupal\Core\Form\FormBuilderInterface::rebuildForm(). | ||||
RebuildTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests functionality of \Drupal\Core\Form\FormBuilderInterface::rebuildForm(). | ||||
Rectangle | class | Drupal\Component\Utility | core/ |
Rectangle rotation algebra class. | 2 | |||
RectangleTest | class | Drupal\Tests\Component\Utility | core/ |
@coversDefaultClass \Drupal\Component\Utility\Rectangle[[api-linebreak]] @group Image | ||||
RecursiveContextualValidator | class | Drupal\Core\TypedData\Validation | core/ |
Defines a recursive contextual validator for Typed Data. | ||||
RecursiveContextualValidatorTest | class | Drupal\KernelTests\Core\TypedData | core/ |
@coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator[[api-linebreak]] @group Validation | ||||
RecursiveContextualValidatorTest | class | Drupal\Tests\Core\TypedData | core/ |
@coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator[[api-linebreak]] @group typedData | ||||
RecursivePlaceholdersTest | class | Drupal\Tests\Core\Render | core/ |
|||||
RecursiveValidator | class | Drupal\Core\TypedData\Validation | core/ |
Defines a recursive validator for Typed Data. | 2 | |||
RedirectBlockForm | class | Drupal\form_test\Form | core/ |
Builds a simple form that redirects on submit. | ||||
RedirectCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command to set the window.location, loading that URL. | 2 | |||
RedirectDestination | class | Drupal\Core\Routing | core/ |
Provides helpers for redirect destinations. | 1 | 2 | ||
RedirectDestinationInterface | interface | Drupal\Core\Routing | core/ |
Provides an interface for redirect destinations. | 1 | 8 | ||
RedirectDestinationTest | class | Drupal\Tests\Core\Routing | core/ |
@coversDefaultClass \Drupal\Core\Routing\RedirectDestination[[api-linebreak]] @group Routing | ||||
RedirectDestinationTrait | trait | Drupal\Core\Routing | core/ |
Wrapper methods for the Redirect Destination. | 10 | |||
RedirectFormBlock | class | Drupal\form_test\Plugin\Block | core/ |
Provides a block containing a simple redirect form. | ||||
RedirectLeadingSlashesSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Redirects paths containing successive slashes to those with single slashes. | 2 | |||
RedirectOnExceptionTest | class | Drupal\KernelTests\RequestProcessing | core/ |
Tests redirects on exception pages. | ||||
RedirectResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Allows manipulation of the response object when performing a redirect. | 1 | 2 | ||
RedirectResponseSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\RedirectResponseSubscriber[[api-linebreak]] @group EventSubscriber | ||||
RedirectTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the redirecting after saving a views. | ||||
RedirectTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests form redirection functionality. | ||||
ReferenceAccessConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Entity Reference valid reference constraint. | ||||
ReferenceAccessConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if the current user has access to newly referenced entities. | ||||
RefinableCacheableDependencyInterface | interface | Drupal\Core\Cache | core/ |
Allows to add cacheability metadata to an object for the current runtime. | 9 | 22 | ||
RefinableCacheableDependencyTrait | trait | Drupal\Core\Cache | core/ |
Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface. | 8 | |||
Reflection | final class | Drupal\Component\Utility | core/ |
Provides helper methods for reflection. | 3 | |||
ReflectionClass | trait | Drupal\Component\Annotation\Doctrine\Compatibility\Php8 | core/ |
|||||
ReflectionClass | trait | Drupal\Component\Annotation\Doctrine\Compatibility\Php7 | core/ |
|||||
ReflectionFactory | class | Drupal\Component\Plugin\Factory | core/ |
A plugin factory that maps instance configuration to constructor arguments. | 1 | 2 | ||
ReflectionFactoryTest | class | Drupal\Tests\Component\Plugin\Factory | core/ |
@group Plugin @coversDefaultClass \Drupal\Component\Plugin\Factory\ReflectionFactory[[api-linebreak]] | ||||
ReflectionTest | class | Drupal\Tests\Component\Utility | core/ |
@coversDefaultClass \Drupal\Component\Utility\Reflection[[api-linebreak]] @group Utility | ||||
RefreshVariablesTrait | trait | Drupal\Core\Test | core/ |
Provides a method to refresh in-memory configuration and state information. | 1 | |||
RegexConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Regex constraint. | ||||
RegexDirectoryIterator | class | Drupal\Component\FileSystem | core/ |
Iterates over files whose names match a regular expression in a directory. | 3 | |||
RegexDirectoryIteratorTest | class | Drupal\Tests\Component\FileSystem | core/ |
@coversDefaultClass \Drupal\Component\FileSystem\RegexDirectoryIterator[[api-linebreak]] @group FileSystem | ||||
RegionalForm | class | Drupal\system\Form | core/ |
Configure regional settings for this site. | 1 | |||
RegisterAccessCheck | class | Drupal\user\Access | core/ |
Access check for user registration routes. | 2 | |||
RegisterAccessChecksPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Adds services tagged 'access_check' to the access_manager service. | 1 | |||
RegisterEntityResolversCompilerPass | class | Drupal\serialization | core/ |
Adds services tagged 'entity_resolver' to the Serializer. | ||||
RegisterEventSubscribersPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Registers all event subscribers to the event dispatcher. | 1 | |||
RegisterForm | class | Drupal\user | core/ |
Form handler for the user register forms. |
Pagination
- Previous page
- Page 101
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.