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 |
|---|---|---|---|---|---|---|---|---|
| LanguageNegotiationUrl | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying language via URL prefix or domain. | 17 | |||
| LanguageNegotiationUrlFallback | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Determines the language to be assigned to URLs when none is detected. | 1 | |||
| LanguageNegotiationUrlTest | class | Drupal\Tests\language\Unit | core/ |
@coversDefaultClass \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl[[api-linebreak]] @group language | ||||
| LanguageNegotiationUrlTest | class | Drupal\Tests\language\Functional | core/ |
@coversDefaultClass \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl[[api-linebreak]] @group language | ||||
| LanguageNegotiationUser | class | Drupal\user\Plugin\LanguageNegotiation | core/ |
Class for identifying language from the user preferences. | 4 | |||
| LanguageNegotiationUserAdmin | class | Drupal\user\Plugin\LanguageNegotiation | core/ |
Identifies admin language from the user preferences. | 2 | |||
| LanguageNegotiator | class | Drupal\language | core/ |
Class responsible for performing language negotiation. | 2 | |||
| LanguageNegotiatorInterface | interface | Drupal\language | core/ |
Common interface for language negotiation services. | 1 | 5 | ||
| LanguageNegotiatorPluginTest | class | Drupal\Tests\language\Kernel | core/ |
Tests PluginNotFoundException. | ||||
| LanguagePathMonolingualTest | class | Drupal\Tests\language\Functional | core/ |
Confirm that paths are not changed on monolingual non-English sites. | ||||
| LanguagePluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language[[api-linebreak]] @group ckeditor5 @internal | ||||
| LanguageReference | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
Defines the 'language_reference' data type. | 1 | |||
| LanguageRequestSubscriber | class | Drupal\language\EventSubscriber | core/ |
Sets the $request property on the language manager. | ||||
| LanguagesCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the LanguagesCacheContext service, for "per language" caching. | 2 | |||
| LanguageSelect | class | Drupal\Core\Render\Element | core/ |
Provides a form element for selecting a language. | ||||
| LanguageSelectElementTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the language selection form element. | ||||
| LanguageSelectorTranslatableTest | class | Drupal\Tests\language\Functional | core/ |
Tests the content translation settings language selector options. | ||||
| LanguageSelectWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'Language' widget. | ||||
| LanguageSelectWidgetTest | class | Drupal\Tests\language\Kernel | core/ |
Tests the language select widget. | ||||
| LanguageServiceProvider | class | Drupal\language | core/ |
Overrides the language_manager service to point to language's module one. | ||||
| LanguageSwitcherInterface | interface | Drupal\language | core/ |
Interface for language switcher classes. | 3 | 3 | ||
| LanguageSwitchingTest | class | Drupal\Tests\language\Functional | core/ |
Functional tests for the language switching feature. | ||||
| LanguageTest | class | Drupal\Tests\language\Kernel\Plugin\migrate\source | core/ |
Tests the language source plugin. | ||||
| LanguageTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 UI translations. | ||||
| LanguageTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Tests language resolving for CKEditor 5. | ||||
| LanguageTestBase | abstract class | Drupal\Tests\language\Kernel\Views | core/ |
Defines the base class for all Language handler tests. | 3 | |||
| LanguageTestBase | abstract class | Drupal\Tests\language\Kernel | core/ |
Test for dependency injected language object. | 4 | |||
| LanguageTestController | class | Drupal\language_test\Controller | core/ |
Controller routines for language_test routes. | ||||
| LanguageTestTrait | trait | Drupal\Tests\language\Traits | core/ |
Provides an API to programmatically manage languages in tests. | 8 | |||
| LanguageTourTest | class | Drupal\Tests\tour\Functional\Language | core/ |
Tests tour functionality. | ||||
| LanguageTypes | class | Drupal\language\Plugin\migrate\process | core/ |
Processes the array for the language types. | 1 | |||
| LanguageTypesTest | class | Drupal\Tests\language\Unit\process | core/ |
@coversDefaultClass \Drupal\language\Plugin\migrate\process\LanguageTypes[[api-linebreak]] @group language | ||||
| LanguageUILanguageNegotiationTest | class | Drupal\Tests\language\Functional | core/ |
Tests the language UI for language switching. | ||||
| LanguageUnitTest | class | Drupal\Tests\Core\Language | core/ |
@coversDefaultClass \Drupal\Core\Language\Language[[api-linebreak]] @group Language | ||||
| LanguageUrlRewritingTest | class | Drupal\Tests\language\Functional | core/ |
Tests that URL rewriting works as expected. | ||||
| LargeQueryTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests handling of large queries. | ||||
| LastTimestamp | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to display the timestamp of a comment with the count of comments. | ||||
| LatestRevision | class | Drupal\views\Plugin\views\filter | core/ |
Filter to show only the latest revision of an entity. | ||||
| LatestRevisionCheck | class | Drupal\content_moderation\Access | core/ |
Access check for the entity moderation tab. | 2 | 2 | ||
| LatestRevisionCheckTest | class | Drupal\Tests\content_moderation\Unit | core/ |
@coversDefaultClass \Drupal\content_moderation\Access\LatestRevisionCheck[[api-linebreak]] @group content_moderation | ||||
| LatestRevisionFilterTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests the 'Latest revision' filter. | ||||
| LatestTranslationAffectedRevision | class | Drupal\views\Plugin\views\filter | core/ |
Filter to show only the latest translation affected revision of an entity. | ||||
| LatestTranslationAffectedRevisionTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests the 'Latest translation affected revision' filter. | ||||
| Layout | class | Drupal\Core\Layout\Attribute | core/ |
Defines a Layout attribute object. | 9 | |||
| Layout | class | Drupal\Core\Layout\Annotation | core/ |
Defines a Layout annotation object. | ||||
| LayoutBuilder | class | Drupal\layout_builder\Element | core/ |
Defines a render element for building the Layout Builder UI. | ||||
| LayoutBuilderAccessCheck | class | Drupal\layout_builder\Access | core/ |
Provides an access check for the Layout Builder defaults. | 2 | |||
| LayoutBuilderAccessTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests access to Layout Builder. | ||||
| LayoutBuilderBlocksTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests the Layout Builder UI with blocks. | ||||
| LayoutBuilderBreadcrumbAlterTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests layout_builder_system_breadcrumb_alter(). |
Pagination
- Previous page
- Page 99
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.