Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| RecipeRunner | final class | Drupal\Core\Recipe | core/ |
Applies a recipe. | 14 | |||
| RecipeRunnerTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Drupal\Core\Recipe\RecipeRunner. | ||||
| RecipeTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Drupal\Core\Recipe\Recipe. | ||||
| RecipeTestTrait | trait | Drupal\FunctionalTests\Core\Recipe | core/ |
Contains helper methods for interacting with recipes in functional tests. | 15 | |||
| RecipeValidationTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Recipe Validation. | ||||
| Rectangle | class | Drupal\Component\Utility | core/ |
Rectangle rotation algebra class. | 2 | |||
| RectangleTest | class | Drupal\Tests\Component\Utility | core/ |
Tests Drupal\Component\Utility\Rectangle. | ||||
| RecursiveContextualValidator | class | Drupal\Core\TypedData\Validation | core/ |
Defines a recursive contextual validator for Typed Data. | 2 | |||
| RecursiveContextualValidatorTest | class | Drupal\Tests\Core\TypedData | core/ |
Tests Drupal\Core\TypedData\Validation\RecursiveContextualValidator. | ||||
| RecursiveContextualValidatorTest | class | Drupal\KernelTests\Core\TypedData | core/ |
Tests Drupal\Core\TypedData\Validation\RecursiveContextualValidator. | ||||
| RecursiveExtensionFilterCallback | class | Drupal\Core\Extension\Discovery | core/ |
Filters a RecursiveDirectoryIterator to discover extensions. | 1 | |||
| RecursivePlaceholdersTest | class | Drupal\Tests\Core\Render | core/ |
|||||
| RecursiveValidator | class | Drupal\Core\TypedData\Validation | core/ |
Defines a recursive validator for Typed Data. | 3 | |||
| RecursiveValidatorFactory | class | Drupal\file\Validation | core/ |
Factory for creating a new RecursiveValidator. | 2 | |||
| RedirectAjaxTest | class | Drupal\Tests\views\FunctionalJavascript | core/ |
Tests that the redirects work with Ajax enabled views. | ||||
| 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. | 4 | |||
| 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 | 17 | ||
| RedirectDestinationTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\RedirectDestination. | ||||
| RedirectDestinationTrait | trait | Drupal\Core\Routing | core/ |
Wrapper methods for the Redirect Destination. | 12 | |||
| 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. | 4 | 2 | ||
| RedirectResponseSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
Tests Drupal\Core\EventSubscriber\RedirectResponseSubscriber. | ||||
| 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. | ||||
| RedundantEditableConfigNamesTrait | trait | Drupal\Core\Form | core/ |
Implements ::getEditableConfigNames() for forms using #config_target. | 8 | |||
| ReEnableModuleFieldTest | class | Drupal\Tests\field\Functional | core/ |
Tests the behavior of a field module after being disabled and re-enabled. | ||||
| 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. | ||||
| ReferenceBase | abstract class | Drupal\migrate_drupal\Plugin\migrate\field | core/ |
Base class for Drupal reference fields. | 4 | 4 | ||
| RefinableCacheableDependencyInterface | interface | Drupal\Core\Cache | core/ |
Allows to add cacheability metadata to an object for the current runtime. | 13 | 28 | ||
| RefinableCacheableDependencyTrait | trait | Drupal\Core\Cache | core/ |
Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface. | 12 | |||
| RefinableCacheableDependencyTraitTest | class | Drupal\Tests\Core\Cache | core/ |
Tests the cache RefinableCacheableDependencyTrait. | ||||
| RefinableCalculatedPermissions | class | Drupal\Core\Session | core/ |
Represents a calculated set of permissions with cacheable metadata. | 6 | |||
| RefinableCalculatedPermissionsInterface | interface | Drupal\Core\Session | core/ |
Defines the refinable calculated permissions interface. | 1 | 2 | ||
| RefinableCalculatedPermissionsTest | class | Drupal\Tests\Core\Session | core/ |
Tests the RefinableCalculatedPermissions class. | ||||
| RefinableDependentAccessInterface | interface | Drupal\Core\Access | core/ |
An interface to allow adding an access dependency. | 4 | 5 | ||
| RefinableDependentAccessTrait | trait | Drupal\Core\Access | core/ |
Trait for \Drupal\Core\Access\RefinableDependentAccessInterface. | 3 | |||
| RefinableDependentAccessTraitTestClass | class | Drupal\Tests\Core\Access | core/ |
Test class that implements RefinableDependentAccessInterface. | ||||
| Reflection | final class | Drupal\Component\Utility | core/ |
Provides helper methods for reflection. | 3 | |||
| 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/ |
Tests Drupal\Component\Plugin\Factory\ReflectionFactory. | ||||
| ReflectionTest | class | Drupal\Tests\Component\Utility | core/ |
Tests Drupal\Component\Utility\Reflection. | ||||
| 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. | 1 | 2 | ||
| 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/ |
Tests Drupal\Component\FileSystem\RegexDirectoryIterator. |
Pagination
- Previous page
- Page 159
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.