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 |
|---|---|---|---|---|---|---|---|---|
| RandomGeneratorTrait | trait | Drupal\Tests | core/ |
Provides random generator utility methods. | 2 | |||
| RandomTest | class | Drupal\Tests\Component\Utility | core/ |
Tests random data generation. | ||||
| Range | class | Drupal\Core\Render\Element | core/ |
Provides a slider for input of a number within a specific range. | ||||
| RangeConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Range constraint. | ||||
| RangeConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validator for the Drupal 'range' constraint. | ||||
| RangeQueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Range query functionality. | ||||
| Raw | class | Drupal\views\Plugin\views\argument_default | core/ |
Default argument plugin to use the raw value from the URL. | 1 | |||
| RawStringFormatterTest | class | Drupal\Tests\field\Kernel\String | core/ |
Tests the raw string formatter. | ||||
| RawTest | class | Drupal\Tests\views\Unit\Plugin\argument_default | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\argument_default\Raw[[api-linebreak]] @group views | ||||
| RdfaAttributesTest | class | Drupal\Tests\rdf\Kernel | core/ |
Tests RDFa attribute generation from RDF mapping. | ||||
| RdfCommentStorageLoadTest | class | Drupal\Tests\rdf\Kernel | core/ |
Tests rdf_comment_storage_load. | ||||
| RdfMapping | class | Drupal\rdf\Entity | core/ |
Config entity for working with RDF mappings. | 4 | |||
| RdfMapping | class | Drupal\rdf\Plugin\migrate\source\d7 | core/ |
Drupal 7 rdf source from database. | ||||
| RdfMappingConfigEntityUnitTest | class | Drupal\Tests\rdf\Unit | core/ |
@coversDefaultClass \Drupal\rdf\Entity\RdfMapping[[api-linebreak]] @group rdf @group legacy | ||||
| RdfMappingHalJsonAnonTest | class | Drupal\Tests\hal\Functional\rdf | core/ |
@group hal @group legacy | ||||
| RdfMappingHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\rdf | core/ |
@group hal @group legacy | ||||
| RdfMappingHalJsonCookieTest | class | Drupal\Tests\hal\Functional\rdf | core/ |
@group hal @group legacy | ||||
| RdfMappingInterface | interface | Drupal\rdf | core/ |
Provides an interface defining an RDF mapping entity. | 1 | 2 | ||
| RdfMappingJsonAnonTest | class | Drupal\Tests\rdf\Functional\Rest | core/ |
@group rest @group legacy | ||||
| RdfMappingJsonBasicAuthTest | class | Drupal\Tests\rdf\Functional\Rest | core/ |
@group rest @group legacy | ||||
| RdfMappingJsonCookieTest | class | Drupal\Tests\rdf\Functional\Rest | core/ |
@group rest @group legacy | ||||
| RdfMappingResourceTestBase | abstract class | Drupal\Tests\rdf\Functional\Rest | core/ |
9 | 3 | |||
| RdfMappingTest | class | Drupal\Tests\rdf\Kernel\Plugin\migrate\source\d7 | core/ |
Tests Drupal 7 RDF mappings source plugin. | ||||
| RdfMappingTest | class | Drupal\Tests\rdf\Functional\Jsonapi | core/ |
JSON:API integration test for the "RdfMapping" config entity type. | ||||
| RdfMappingXmlAnonTest | class | Drupal\Tests\rdf\Functional\Rest | core/ |
@group rest @group legacy | ||||
| RdfMappingXmlBasicAuthTest | class | Drupal\Tests\rdf\Functional\Rest | core/ |
@group rest @group legacy | ||||
| RdfMappingXmlCookieTest | class | Drupal\Tests\rdf\Functional\Rest | core/ |
@group rest @group legacy | ||||
| RdfParsingTrait | trait | Drupal\Tests\rdf\Traits | core/ |
Defines a trait for parsing RDF properties from HTML. | 9 | |||
| ReadOnlyException | class | Drupal\Core\TypedData\Exception | core/ |
Exception thrown when trying to write or set ready-only data. | ||||
| ReadOnlyModeMethodFilter | class | Drupal\jsonapi\Routing | core/ |
Filters routes based on the HTTP method and JSON:API's read-only mode. | 2 | |||
| ReadOnlyStorage | class | Drupal\Core\Config | core/ |
A ReadOnlyStorage decorates a storage and does not allow writing to it. | 1 | |||
| 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. | ||||
| RebuildPermissionsForm | class | Drupal\node\Form | core/ |
Form for rebuilding permissions. | 1 | |||
| 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 | ||||
| RecursiveExtensionFilterIterator | 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. | 2 |
Pagination
- Previous page
- Page 136
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.