Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ConfigTranslationUiThemeTest | class | Drupal\Tests\config_translation\Functional | core/ |
Verifies theme configuration translation settings. | ||||
ConfigTranslationViewListUiTest | class | Drupal\Tests\config_translation\Functional | core/ |
Visit view list and test if translate is available. | ||||
ConfigUninstallViaCliImportTest | class | Drupal\Tests\config\Kernel | core/ |
Tests importing configuration from files into active configuration. | ||||
ConfigurableActionBase | abstract class | Drupal\Core\Action | core/ |
Provides a base implementation for a configurable Action plugin. | 8 | 8 | ||
ConfigurableEntityReferenceItem | in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem instead. |
class | Drupal\entity_reference | core/ |
Deprecated. Alternative implementation of the 'entity_reference' field type. | |||
ConfigurableImageEffectBase | abstract class | Drupal\image | core/ |
Provides a base class for configurable image effects. | 4 | 4 | ||
ConfigurableImageEffectInterface | interface | Drupal\image | core/ |
Defines the interface for configurable image effects. | 1 | 2 | ||
ConfigurableInterface | interface | Drupal\Component\Plugin | core/ |
Provides an interface for a configurable plugin. | 15 | 17 | ||
ConfigurableLanguage | class | Drupal\language\Entity | core/ |
Defines the ConfigurableLanguage entity. | 193 | |||
ConfigurableLanguageHalJsonAnonTest | class | Drupal\Tests\language\Functional\Hal | core/ |
@group hal | ||||
ConfigurableLanguageHalJsonBasicAuthTest | class | Drupal\Tests\language\Functional\Hal | core/ |
@group hal | ||||
ConfigurableLanguageHalJsonCookieTest | class | Drupal\Tests\language\Functional\Hal | core/ |
@group hal | ||||
ConfigurableLanguageInterface | interface | Drupal\language | core/ |
Provides an interface defining a language entity. | 1 | 6 | ||
ConfigurableLanguageJsonAnonTest | class | Drupal\Tests\language\Functional\Rest | core/ |
@group rest | ||||
ConfigurableLanguageJsonBasicAuthTest | class | Drupal\Tests\language\Functional\Rest | core/ |
@group rest | ||||
ConfigurableLanguageJsonCookieTest | class | Drupal\Tests\language\Functional\Rest | core/ |
@group rest | ||||
ConfigurableLanguageManager | class | Drupal\language | core/ |
Overrides default LanguageManager to provide configured languages. | 3 | |||
ConfigurableLanguageManagerInterface | interface | Drupal\language | core/ |
Common interface for language negotiation services. | 1 | 13 | ||
ConfigurableLanguageManagerTest | class | Drupal\Tests\language\Kernel | core/ |
Tests the ConfigurableLanguage entity. | ||||
ConfigurableLanguageManagerTest | class | Drupal\Tests\language\Functional | core/ |
Tests Language Negotiation. | ||||
ConfigurableLanguageRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entities in a configured language. | ||||
ConfigurableLanguageResourceTestBase | abstract class | Drupal\Tests\language\Functional\Rest | core/ |
10 | 4 | |||
ConfigurableLanguageResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\language\Functional\Rest\ConfigurableLanguageResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\ConfigurableLanguage | core/ |
||||
ConfigurableLanguageTest | class | Drupal\Tests\language\Kernel | core/ |
Tests the ConfigurableLanguage entity. | ||||
ConfigurableLanguageTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "ConfigurableLanguage" config entity type. | ||||
ConfigurableLanguageUnitTest | class | Drupal\Tests\language\Unit | core/ |
Tests the ConfigurableLanguage entity class. | ||||
ConfigurableLanguageXmlAnonTest | class | Drupal\Tests\language\Functional\Rest | core/ |
@group rest | ||||
ConfigurableLanguageXmlBasicAuthTest | class | Drupal\Tests\language\Functional\Rest | core/ |
@group rest | ||||
ConfigurableLanguageXmlCookieTest | class | Drupal\Tests\language\Functional\Rest | core/ |
@group rest | ||||
ConfigurableLinkManagerInterface | in drupal:8.3.0 and is removed from drupal:9.0.0. This has been moved to the hal module. This exists solely for BC. |
interface | Drupal\rest\LinkManager | core/ |
||||
ConfigurableLinkManagerInterface | interface | Drupal\hal\LinkManager | core/ |
Defines an interface for a link manager with a configurable domain. | 3 | 1 | ||
ConfigurablePlugin | class | Drupal\Tests\Core\Plugin | core/ |
|||||
ConfigurablePluginInterface | Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement ConfigurableInterface and/or DependentPluginInterface directly as needed. If you implement ConfigurableInterface you may choose to implement ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility, however this must be removed prior to Drupal 9. |
interface | Drupal\Component\Plugin | core/ |
Provides an interface for a configurable plugin. | 13 | 14 | |
ConfigurablePluginInterfaceTest | class | Drupal\Tests\Component\Plugin | core/ |
Tests ConfigurablePluginInterface deprecation. | ||||
ConfigurablePluginInterfaceTestClass | class | Drupal\Tests\Component\Plugin | core/ |
Test Class to trigger deprecation error. | ||||
ConfigurableSearchPluginBase | abstract class | Drupal\search\Plugin | core/ |
Provides a base implementation for a configurable Search plugin. | 2 | 3 | ||
ConfigurableSearchPluginInterface | interface | Drupal\search\Plugin | core/ |
Provides an interface for a configurable Search plugin. | 1 | |||
ConfigurationTest | class | Drupal\Tests\action\Functional | core/ |
Tests complex actions configuration by adding, editing, and deleting a complex action. | ||||
ConfigureBlockFormBase | abstract class | Drupal\layout_builder\Form | core/ |
Provides a base form for configuring a block. | 2 | |||
ConfigureSectionForm | class | Drupal\layout_builder\Form | core/ |
Provides a form for configuring a layout section. | 1 | |||
ConfigValidation | class | Drupal\config_test | core/ |
Provides a collection of validation callbacks for testing purposes. | 1 | |||
ConfigValueException | class | Drupal\Core\Config | core/ |
Exception thrown when config object values are invalid. | 2 | |||
ConfirmClassyCopiesTest | class | Drupal\KernelTests\Core\Theme | core/ |
Confirms that theme assets copied from Classy have not been changed. | ||||
ConfirmDeleteMultiple | class | Drupal\comment\Form | core/ |
Provides the comment multiple delete confirmation form. | 1 | |||
ConfirmFormArrayPathTestForm | class | Drupal\form_test | core/ |
Provides a test confirmation form with a complex cancellation destination. | 1 | |||
ConfirmFormBase | abstract class | Drupal\Core\Form | core/ |
Provides an generic base class for a confirmation form. | 29 | 29 | ||
ConfirmFormHelper | class | Drupal\Core\Form | core/ |
Provides common functionality to confirmation forms. | 3 | |||
ConfirmFormHelperTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\ConfirmFormHelper @group Form | ||||
ConfirmFormInterface | interface | Drupal\Core\Form | core/ |
Defines the behavior a confirmation form. | 3 | 2 | ||
ConfirmFormTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests confirmation forms. |
Pagination
- Previous page
- Page 30
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.