Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
LazyRouteCollectionTest | class | Drupal\Tests\Core\Routing | core/ |
@coversDefaultClass \Drupal\Core\Routing\LazyRouteCollection[[api-linebreak]] | ||||
LazyRouteProviderInstallTest | class | Drupal\FunctionalTests\Routing | core/ |
@group routing | ||||
LeaveProfileNode | class | Drupal\sdc_other_node_visitor\Twig\Profiler | core/ |
Represents a profile leave node. | 1 | |||
LegacyAssetTest | class | Drupal\KernelTests\Core\Asset | core/ |
Tests deprecated asset functions. | ||||
LegacyBootstrapTest | class | Drupal\KernelTests\Core\Bootstrap | core/ |
Tests legacy bootstrap functions. | ||||
LegacyCommonTest | class | Drupal\KernelTests\Core\Common | core/ |
Tests deprecated legacy functions in common.inc. | ||||
LegacyExtensionTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\Extension[[api-linebreak]] @group Extension @group legacy | ||||
LegacyFileModuleTest | class | Drupal\Tests\file\Kernel | core/ |
Tests file module deprecations. | ||||
LegacyFileSystemTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the legacy file system functions. | ||||
LegacyFileThemeTest | class | Drupal\Tests\file\Kernel | core/ |
Tests legacy deprecated functions in file.module. | ||||
LegacyFileUploadHandlerTest | class | Drupal\Tests\file\Kernel\Upload | core/ |
Provides tests for legacy file upload handler code. | ||||
LegacyHook | class | Drupal\Core\Hook\Attribute | core/ |
This class will not have an effect until Drupal 11.1.0. | ||||
LegacyMatcherDumperTest | class | Drupal\KernelTests\Core\Routing | core/ |
Tests deprecations in MatcherDumper. | ||||
LegacyPasswordHashingTest | class | Drupal\Tests\phpass\Unit | core/ |
Unit tests for password hashing API. | ||||
LegacySettingsRewriteTest | class | Drupal\KernelTests\Core\Site | core/ |
Tests the drupal_rewrite_settings() function. | ||||
LegacyStateTest | class | Drupal\KernelTests\Core\State | core/ |
Tests the legacy state deprecations. | ||||
LegacyUserTest | class | Drupal\Tests\user\Kernel | core/ |
Tests deprecated user module functions. | ||||
LegacyValidateTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file_validate() function. | ||||
LegacyValidatorTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the functions used to validate uploaded files. | ||||
LengthConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Length constraint. | ||||
LibrariesBCLayerTest | final class | Drupal\Tests\sdc\Functional | core/ |
Tests the correct rendering of components. | ||||
LibrariesDirectoryFileFinder | class | Drupal\Core\Asset | core/ |
Finds files that are located in the supported 'libraries' directories. | 2 | 2 | ||
LibrariesDirectoryFileFinderTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibrariesDirectoryFileFinder[[api-linebreak]] @group Asset | ||||
LibraryDefinitionMissingLicenseException | class | Drupal\Core\Asset\Exception | core/ |
Defines a custom exception if a library has a remote but no license. | 2 | |||
LibraryDependencyResolver | class | Drupal\Core\Asset | core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | 1 | 2 | ||
LibraryDependencyResolverInterface | interface | Drupal\Core\Asset | core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | 1 | 2 | ||
LibraryDependencyResolverTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibraryDependencyResolver[[api-linebreak]] @group Asset | ||||
LibraryDiscovery | class | Drupal\Core\Asset | core/ |
Discovers available asset libraries in Drupal. | 1 | 2 | ||
LibraryDiscoveryCollector | class | Drupal\Core\Asset | core/ |
A CacheCollector implementation for building library extension info. | 1 | 2 | ||
LibraryDiscoveryCollectorTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryCollector[[api-linebreak]] @group Asset | ||||
LibraryDiscoveryIntegrationTest | class | Drupal\KernelTests\Core\Asset | core/ |
Tests the library discovery and library discovery parser. | ||||
LibraryDiscoveryInterface | interface | Drupal\Core\Asset | core/ |
Discovers information for asset (CSS/JavaScript) libraries. | 1 | |||
LibraryDiscoveryParser | class | Drupal\Core\Asset | core/ |
Parses library files to get extension data. | 1 | 1 | 2 | |
LibraryDiscoveryParserTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryParser[[api-linebreak]] @group Asset | ||||
LibraryDiscoveryTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery[[api-linebreak]] @group Asset | ||||
LinearHistory | final class | Drupal\Core\Config\Checkpoint | core/ |
A chronological list of Checkpoint objects. | 2 | 2 | ||
LinearHistoryTest | class | Drupal\Tests\Core\Config\Checkpoint | core/ |
@coversDefaultClass \Drupal\Core\Config\Checkpoint\LinearHistory[[api-linebreak]] @group Config | ||||
Link | class | Drupal\Core | core/ |
Defines an object that holds information about a link. | 98 | |||
Link | class | Drupal\Core\Render\Element | core/ |
Provides a link render element. | 2 | 3 | ||
Link | final class | Drupal\jsonapi\JsonApiResource | core/ |
Represents an RFC8288 based link. | 7 | |||
LinkAccessConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Defines an access validation constraint for links. | 1 | |||
LinkAccessConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validates the LinkAccess constraint. | 1 | |||
LinkAccessConstraintValidatorTest | class | Drupal\Tests\link\Unit\Plugin\Validation\Constraint | core/ |
Tests the LinkAccessConstraintValidator validator. | ||||
LinkApprove | class | Drupal\comment\Plugin\views\field | core/ |
Provides a comment approve link. | 1 | |||
LinkApproveTest | class | Drupal\Tests\comment\Unit\Plugin\views\field | core/ |
@coversDefaultClass \Drupal\comment\Plugin\views\field\LinkApprove[[api-linebreak]] @group comment | ||||
LinkBase | abstract class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to an entity. | 5 | 5 | ||
LinkBaseTest | class | Drupal\Tests\views\Unit\Plugin\views\field | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\field\EntityLink[[api-linebreak]] @group Views | ||||
LinkCollection | final class | Drupal\jsonapi\JsonApiResource | core/ |
Contains a set of JSON:API Link objects. | 9 | |||
LinkCollectionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes a LinkCollection object. | 1 | 2 | ||
LinkCollectionNormalizerTest | class | Drupal\Tests\jsonapi\Kernel\Normalizer | core/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\LinkCollectionNormalizer[[api-linebreak]] @group jsonapi |
Pagination
- Previous page
- Page 102
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.