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 |
|---|---|---|---|---|---|---|---|---|
| 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 | in drupal:11.3.0 and is removed from drupal:13.0.0. There is no replacement. |
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/ |
Tests Drupal\serialization\Normalizer\ListNormalizer. | ||||
| ListPlugin | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 List plugin. | 1 | 1 | ||
| ListPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\ListPlugin. | ||||
| 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(). | ||||
| LocalActionDefault | class | Drupal\Core\Menu | core/ |
Provides a default implementation for local action plugins. | 7 | 8 | 2 | |
| LocalActionDefaultTest | class | Drupal\Tests\Core\Menu | core/ |
Tests Drupal\Core\Menu\LocalActionDefault. | ||||
| 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 | 2 | 2 | |
| LocalActionManagerInterface | interface | Drupal\Core\Menu | core/ |
Manages discovery and instantiation of menu local action plugins. | 1 | 2 | ||
| LocalActionManagerTest | class | Drupal\Tests\Core\Menu | core/ |
Tests Drupal\Core\Menu\LocalActionManager. | ||||
| LocalActionManagerTest | class | Drupal\KernelTests\Core\Menu | core/ |
Tests the local action manager. | ||||
| LocalActionsBlock | class | Drupal\Core\Menu\Plugin\Block | core/ |
Provides a block to display the local actions. | ||||
| LocalActionTest | class | Drupal\Tests\block_content\Functional | core/ |
Tests block_content local action links. | ||||
| 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 | |||
| LocalActionWithDestination | class | Drupal\Core\Menu | core/ |
Modifies the local action to add a destination. | 1 | |||
| LocalAwareRedirectResponseTrait | trait | Drupal\Core\Routing | core/ |
Provides a trait which ensures that a URL is safe to redirect to. | ||||
| LocaleBatchTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests locale batches. | ||||
| LocaleBuildTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests building the translatable project information. | ||||
| LocaleBulkDeprecationTest | class | Drupal\Tests\locale\Unit | core/ |
Tests locale.bulk.inc. | ||||
| LocaleConfigManager | class | Drupal\locale | core/ |
Manages configuration supported in part by interface translation. | 5 | 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/ |
Tests Locale Default Config Storage. | ||||
| LocaleDefaultOptions | class | Drupal\locale | core/ |
Provides the locale default update options. | 7 | |||
| 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. | ||||
| LocaleFetch | class | Drupal\locale | core/ |
Provides the locale source services. | 6 | |||
| LocaleFile | final class | Drupal\locale\File | core/ |
Defines the locale file value object. | 5 | |||
| LocaleFileHashTest | class | Drupal\Tests\locale\Functional | core/ |
Tests that file hash is used for local translation file change detection. | ||||
| LocaleFileManager | class | Drupal\locale\File | core/ |
Provide Locale File helper methods. | 6 | |||
| LocaleFileSystemFormTest | class | Drupal\Tests\locale\Functional | core/ |
Tests the locale functionality in the altered file settings form. |
Pagination
- Previous page
- Page 114
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.