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 |
---|---|---|---|---|---|---|---|---|
ListDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining lists. | 3 | 5 | ||
ListDataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions of lists. | 2 | 3 | ||
ListElement | class | Drupal\config_translation\FormElement | core/ |
Defines the list element for the configuration translation interface. | ||||
ListField | class | Drupal\options\Plugin\views\filter | core/ |
Filter handler which uses list-fields as options. | ||||
ListField | class | Drupal\options\Plugin\migrate\field\d7 | core/ |
Plugin annotation @MigrateField( id = "list", type_map = { "list_boolean" = "boolean", "list_integer" = "list_integer", "list_text" = "list_string", "list_float" = "list_float", }, core = {7}, source_module = "list", … | ||||
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. | ||||
Llama | class | Drupal\ckeditor_test\Plugin\CKEditorPlugin | core/ |
Defines the "Llama" plugin, with a CKEditor "llama" feature. | 4 | |||
LlamaButton | class | Drupal\ckeditor_test\Plugin\CKEditorPlugin | core/ |
Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature. | ||||
LlamaContextual | class | Drupal\ckeditor_test\Plugin\CKEditorPlugin | core/ |
Defines a "Llama" plugin, with a contextually enabled "llama" feature. | ||||
LlamaContextualAndButton | class | Drupal\ckeditor_test\Plugin\CKEditorPlugin | core/ |
Defines a "LlamaContextualAndButton" plugin, with a "llama" feature. | ||||
LlamaCss | class | Drupal\ckeditor_test\Plugin\CKEditorPlugin | core/ |
Defines a "LlamaCss" plugin, with an associated "llama" CSS. | ||||
LoadLibraryController | class | Drupal\modernizr_deprecation_test\Controller | core/ |
A page to facilitate library loading. | ||||
LoadMultipleTest | class | Drupal\Tests\taxonomy\Functional | 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. | 6 | 7 | 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\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\LocalActionManager[[api-linebreak]] @group Menu | ||||
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\menu_test\Plugin\Derivative | core/ |
Test derivative to check local action title escaping. | 1 | |||
LocalActionTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests local actions derived from router and added/altered via hooks. | ||||
LocalAwareRedirectResponseTrait | trait | Drupal\Core\Routing | core/ |
Provides a trait which ensures that a URL is safe to redirect to. | ||||
Locale | class | Drupal\locale | core/ |
Static service container wrapper for locale. | 5 | |||
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. | 2 | 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. | 2 | |||
LocaleEvent | class | Drupal\locale | core/ |
Defines a Locale event. | 1 |
Pagination
- Previous page
- Page 98
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.