Classes, traits, and interfaces - 11.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 |
---|---|---|---|---|---|---|---|---|
ComplexTestTypeStateForm | class | Drupal\workflow_type_test\Form | core/ |
Form to configure the complex test workflow states. | ||||
ComplexTestTypeTransitionForm | class | Drupal\workflow_type_test\Form | core/ |
Form to configure the complex test workflow states. | ||||
ComplexWorkflowTypeTest | class | Drupal\Tests\workflows\Kernel | core/ |
Workflow entity tests that require modules or storage. | ||||
Component | class | Drupal\Core\Plugin | core/ |
Simple value object that contains information about the component. | 6 | |||
Component | final class | Drupal\sdc\Plugin | core/ |
Simple value object that contains information about the component. | 6 | |||
ComponentElement | class | Drupal\sdc\Element | core/ |
Provides a Single Directory Component render element. | ||||
ComponentElement | class | Drupal\Core\Render\Element | core/ |
Provides a Single-Directory Component render element. | ||||
ComponentEntityDisplayBase | abstract class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides a destination plugin for migrating entity display components. | 3 | 2 | ||
ComponentGenerator | class | Drupal\Composer\Generator | composer/ |
Reconciles Drupal component dependencies with core. | 1 | |||
ComponentInvalidReplacementTest | final class | Drupal\Tests\sdc\Kernel | core/ |
Tests invalid render options for components. | ||||
ComponentInvalidReplacementTest | class | Drupal\KernelTests\Components | core/ |
Tests invalid render options for components. | ||||
ComponentKernelTestBase | abstract class | Drupal\Tests\Core\Theme\Component | core/ |
Defines a base class for component kernel tests. | 2 | |||
ComponentKernelTestBase | abstract class | Drupal\KernelTests\Components | core/ |
Defines a base class for component kernel tests. | 6 | |||
ComponentKernelTestBase | abstract class | Drupal\Tests\sdc\Kernel | core/ |
Defines a base class for component kernel tests. | 6 | |||
ComponentLoader | class | Drupal\Core\Template\Loader | core/ |
Lets you load templates using the component ID. | ||||
ComponentMetadata | class | Drupal\Core\Theme\Component | core/ |
Component metadata. | 2 | |||
ComponentMetadata | final class | Drupal\sdc\Component | core/ |
Component metadata. | 2 | |||
ComponentMetadataTest | final class | Drupal\Tests\sdc\Unit | core/ |
Unit tests for the component metadata class. | ||||
ComponentMetadataTest | class | Drupal\Tests\Core\Theme\Component | core/ |
Unit tests for the component metadata class. | ||||
ComponentNegotiator | class | Drupal\Core\Theme | core/ |
Determines which component should be used. | 2 | |||
ComponentNegotiator | final class | Drupal\sdc | core/ |
Determines which component should be used. | 1 | |||
ComponentNegotiatorTest | final class | Drupal\Tests\sdc\Kernel | core/ |
Tests the component negotiator. | ||||
ComponentNegotiatorTest | class | Drupal\Tests\Core\Theme\Component | core/ |
Tests the component negotiator. | ||||
ComponentNegotiatorTest | class | Drupal\KernelTests\Components | core/ |
Tests the component negotiator. | ||||
ComponentNodeVisitor | class | Drupal\Core\Template | core/ |
Provides a ComponentNodeVisitor to change the generated parse-tree. | ||||
ComponentNodeVisitor | final class | Drupal\sdc\Twig | core/ |
Provides a ComponentNodeVisitor to change the generated parse-tree. | ||||
ComponentNodeVisitorTest | final class | Drupal\Tests\sdc\Kernel | core/ |
Tests the node visitor. | ||||
ComponentNodeVisitorTest | class | Drupal\KernelTests\Components | core/ |
Tests the node visitor. | ||||
ComponentNotFoundException | class | Drupal\Core\Render\Component\Exception | core/ |
Raised when a component cannot be found. | 7 | |||
ComponentNotFoundException | final class | Drupal\sdc\Exception | core/ |
Raised when a component cannot be found. | 4 | |||
ComponentPluginManager | final class | Drupal\sdc | core/ |
Defines a plugin manager to deal with sdc. | 6 | 2 | ||
ComponentPluginManager | class | Drupal\Core\Theme | core/ |
Defines a plugin manager to deal with components. | 8 | |||
ComponentPluginManagerTest | class | Drupal\Tests\Core\Theme\Component | core/ |
Tests the component plugin manager. | ||||
ComponentPluginManagerTest | class | Drupal\KernelTests\Components | core/ |
Tests the component plugin manager. | ||||
ComponentPluginManagerTest | final class | Drupal\Tests\sdc\Kernel | core/ |
Tests the component plugin manager. | ||||
ComponentRendererTrait | trait | Drupal\Tests\sdc\Traits | core/ |
Defines a trait for rendering components. | 1 | |||
ComponentRenderInvalidTest | class | Drupal\KernelTests\Components | core/ |
Tests invalid render options for components. | ||||
ComponentRenderInvalidTest | final class | Drupal\Tests\sdc\Kernel | core/ |
Tests invalid render options for components. | ||||
ComponentRenderTest | final class | Drupal\Tests\sdc\FunctionalJavascript | core/ |
Tests the correct rendering of components. | ||||
ComponentRenderTest | final class | Drupal\Tests\sdc\Kernel | core/ |
Tests the correct rendering of components. | ||||
ComponentRenderTest | final class | Drupal\Tests\sdc\Functional | core/ |
Tests the correct rendering of components. | ||||
ComponentRenderTest | class | Drupal\KernelTests\Components | core/ |
Tests the correct rendering of components. | ||||
ComponentRenderTest | class | Drupal\FunctionalTests\Components | core/ |
Tests the correct rendering of components. | ||||
ComponentRenderTest | class | Drupal\FunctionalJavascriptTests\Components | core/ |
Tests the correct rendering of components. | ||||
ComponentsIsolatedBuildTest | class | Drupal\BuildTests\Composer\Component | core/ |
Try to install dependencies per component, using Composer. | ||||
ComponentsTaggedReleaseTest | class | Drupal\BuildTests\Composer\Component | core/ |
Demonstrate that the Component generator responds to release tagging. | ||||
ComponentsTwigExtension | final class | Drupal\Core\Template | core/ |
The twig extension so Drupal can recognize the new code. | ||||
ComponentTestDoesNotExtendCoreTest | final class | Drupal\PHPStan\Rules | core/ |
Ensures that no component tests are extending a core test base class. | 1 | |||
ComponentTestDoesNotExtendCoreTestTest | class | Drupal\PHPStan\Tests | core/ |
Tests ComponentTestDoesNotExtendCoreTest rule. | ||||
ComponentValidator | class | Drupal\Core\Theme\Component | core/ |
Validates a component based on its definition and the component schema. | 3 |
Pagination
- Previous page
- Page 27
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.