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 |
|---|---|---|---|---|---|---|---|---|
| ListFloatItem | class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'list_float' field type. | ||||
| ListingEmpty | class | Drupal\node\Plugin\views\area | core/ |
Defines an area plugin to display a node/add link. | ||||
| ListingEmpty | class | Drupal\block_content\Plugin\views\area | core/ |
Defines an area plugin to display a block add link. | ||||
| ListIntegerItem | class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'list_integer' field type. | 1 | |||
| ListInterface | interface | Drupal\Core\TypedData | core/ |
Interface for a list of typed data. | 2 | 7 | ||
| ListItemBase | abstract class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin base class inherited by the options field types. | 3 | |||
| ListNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts list objects to arrays. | 1 | 1 | 2 | |
| ListNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
@coversDefaultClass \Drupal\serialization\Normalizer\ListNormalizer[[api-linebreak]] @group serialization | ||||
| ListPlugin | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 List plugin. | 1 | 1 | ||
| ListPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ListPlugin[[api-linebreak]] @group ckeditor5 @internal | ||||
| ListStringItem | class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'list_string' field type. | ||||
| LoadMultipleTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests the loading of multiple taxonomy terms at once. | ||||
| LoadTest | class | Drupal\Tests\file\Kernel | core/ |
Tests \Drupal\file\Entity\File::load(). | ||||
| Local | class | Drupal\Core\FileTransfer | core/ |
Defines the local connection class for copying files as the httpd user. | 1 | 3 | ||
| LocalActionDefault | class | Drupal\Core\Menu | core/ |
Provides a default implementation for local action plugins. | 7 | 8 | 2 | |
| LocalActionDefaultTest | class | Drupal\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\LocalActionDefault[[api-linebreak]] @group Menu | ||||
| LocalActionInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu local actions. | 1 | |||
| LocalActionManager | class | Drupal\Core\Menu | core/ |
Provides the default local action manager using YML as primary definition. | 1 | 1 | 2 | |
| LocalActionManagerInterface | interface | Drupal\Core\Menu | core/ |
Manages discovery and instantiation of menu local action plugins. | 1 | 2 | ||
| LocalActionManagerTest | class | Drupal\KernelTests\Core\Menu | core/ |
Tests the local action manager. | ||||
| LocalActionManagerTest | class | Drupal\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\LocalActionManager[[api-linebreak]] @group Menu | ||||
| LocalActionsBlock | class | Drupal\Core\Menu\Plugin\Block | core/ |
Provides a block to display the local actions. | ||||
| LocalActionTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests local actions derived from router and added/altered via hooks. | ||||
| LocalActionTest | class | Drupal\menu_test\Plugin\Derivative | core/ |
Test derivative to check local action title escaping. | 1 | |||
| LocalAwareRedirectResponseTrait | trait | Drupal\Core\Routing | core/ |
Provides a trait which ensures that a URL is safe to redirect to. | ||||
| Locale | in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\locale | core/ |
Static service container wrapper for locale. | 1 | ||
| LocaleBuildTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests building the translatable project information. | ||||
| LocaleConfigManager | class | Drupal\locale | core/ |
Manages configuration supported in part by interface translation. | 3 | 2 | ||
| LocaleConfigManagerTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests that the locale config manager operates correctly. | ||||
| LocaleConfigSubscriber | class | Drupal\locale | core/ |
Updates strings translation when configuration translations change. | 2 | |||
| LocaleConfigSubscriberForeignTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests default configuration handling with a foreign default language. | ||||
| LocaleConfigSubscriberTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests that shipped configuration translations are updated correctly. | 1 | |||
| LocaleConfigTranslationImportTest | class | Drupal\Tests\locale\Functional | core/ |
Tests translation update's effects on configuration translations. | ||||
| LocaleConfigTranslationTest | class | Drupal\Tests\locale\Functional | core/ |
Tests translation of configuration strings. | ||||
| LocaleConfigurableLanguageManagerTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests that the configurable language manager and locale operate correctly. | ||||
| LocaleContentTest | class | Drupal\Tests\locale\Functional | core/ |
Tests multilingual support for content types and individual nodes. | ||||
| LocaleController | class | Drupal\locale\Controller | core/ |
Return response for manual check translations. | ||||
| LocaleDefaultConfigStorage | class | Drupal\locale | core/ |
Provides access to default configuration for locale integration. | 1 | 2 | ||
| LocaleDefaultConfigStorageTest | class | Drupal\Tests\locale\Kernel | core/ |
@group locale | ||||
| LocaleEvent | class | Drupal\locale | core/ |
Defines a Locale event. | 1 | |||
| LocaleEvents | final class | Drupal\locale | core/ |
Defines events for locale translation. | 2 | |||
| LocaleExportTest | class | Drupal\Tests\locale\Functional | core/ |
Tests the exportation of locale files. | ||||
| LocaleFileSystemFormTest | class | Drupal\Tests\locale\Functional | core/ |
Tests the locale functionality in the altered file settings form. | ||||
| LocaleImportFunctionalTest | class | Drupal\Tests\locale\Functional | core/ |
Tests the import of locale files. | ||||
| LocaleInstallTest | class | Drupal\Tests\locale\Functional | core/ |
Test installation of Locale module. | ||||
| LocaleJavascriptTranslationTest | class | Drupal\Tests\locale\Functional | core/ |
Tests parsing js files for translatable strings. | ||||
| LocaleLocaleLookupTest | class | Drupal\Tests\locale\Functional | core/ |
Tests LocaleLookup. | ||||
| LocaleLocalTasksTest | class | Drupal\Tests\locale\Unit\Menu | core/ |
Tests locale local tasks. | ||||
| LocaleLookup | class | Drupal\locale | core/ |
A cache collector to allow for dynamic building of the locale cache. | 1 | |||
| LocaleLookupTest | class | Drupal\Tests\locale\Unit | core/ |
@coversDefaultClass \Drupal\locale\LocaleLookup[[api-linebreak]] @group locale |
Pagination
- Previous page
- Page 104
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.