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 |
|---|---|---|---|---|---|---|---|---|
| LinksetControllerMultiLingualTest | final class | Drupal\Tests\system\Functional\Menu | core/ |
Tests the behavior of the linkset controller in multilingual setup. | ||||
| LinksetControllerTest | final class | Drupal\Tests\system\Functional\Menu | core/ |
Tests the behavior of the linkset controller. | ||||
| LinksetControllerTestBase | abstract class | Drupal\Tests\system\Functional\Menu | core/ |
A base class for implementing LinksetController tests. | 2 | |||
| LinkTest | class | Drupal\Tests\jsonapi\Unit\JsonApiResource | core/ |
Tests Drupal\jsonapi\JsonApiResource\Link. | ||||
| LinkTestBaseFieldHooks | class | Drupal\link_test_base_field\Hook | core/ |
Hook implementations for link_test_base_field. | ||||
| LinkThemeHooks | class | Drupal\link\Hook | core/ |
Theme hooks for link. | 1 | |||
| LinkTitleRequiredConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validation constraint for link title subfields if a URL was entered. | 1 | |||
| LinkTitleRequiredConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Constraint validator for link title subfields if a URL was entered. | 1 | |||
| LinkTitleRequiredConstraintValidatorTest | class | Drupal\Tests\link\Unit\Plugin\Validation\Constraint | core/ |
Tests LinkTitleRequiredConstraintValidator::validate(). | ||||
| LinkTypeConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validation constraint for links receiving data allowed by its settings. | 1 | |||
| LinkTypeConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Constraint validator for links receiving data allowed by its settings. | 1 | |||
| LinkTypeConstraintValidatorTest | class | Drupal\Tests\link\Unit\Plugin\Validation\Constraint | core/ |
Tests LinkTypeConstraintValidator. | ||||
| LinkUri | class | Drupal\migrate\Plugin\migrate\process | core/ |
Generates an internal URI from the source value. | 1 | |||
| LinkUri | in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\migrate\Plugin\migrate\process\LinkUri instead. Converts the source path value to an 'entity:', 'internal:' or 'base:' URI. Available configuration keys:
Examples: |
class | Drupal\menu_link_content\Plugin\migrate\process | core/ |
Generates an internal URI from the source value. | 1 | ||
| LinkUriTest | class | Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process | core/ |
Tests \Drupal\menu_link_content\Plugin\migrate\process\LinkUri. | ||||
| LinkUriTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests \Drupal\migrate\Plugin\migrate\process\LinkUri. | ||||
| LinkViewsTokensTest | class | Drupal\Tests\link\Functional\Views | core/ |
Tests the views integration for link tokens. | ||||
| LinkWidget | class | Drupal\link\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'link' widget. | ||||
| ListCacheBinsPass | class | Drupal\Core\Cache | core/ |
Adds cache_bins parameter to the container. | 1 | |||
| ListDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining lists. | 3 | 7 | ||
| ListDataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions of lists. | 2 | 4 | ||
| 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/ |
Migrate field plugin for Drupal 7 list fields. | ||||
| 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. |
Pagination
- Previous page
- Page 115
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.