Classes, traits, and interfaces - 9.5.x - drupal

Primary tabs

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
ConfigTranslationDateFormatUiTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php Tests the content translation behaviors on date formats.
ConfigTranslationDeleteForm class Drupal\config_translation\Form core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php Builds a form to delete configuration translation.
ConfigTranslationEditForm class Drupal\config_translation\Form core/modules/config_translation/src/Form/ConfigTranslationEditForm.php Defines a form for editing configuration translations. 1
ConfigTranslationEntityListBuilder class Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php Defines the configuration translation list builder for entities. 2
ConfigTranslationEntityListBuilderInterface interface Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilderInterface.php Defines an interface for configuration translation entity list builders. 1
ConfigTranslationEvents final class Drupal\config_translation\Event core/modules/config_translation/src/Event/ConfigTranslationEvents.php Provides a list of events dispatched by the Configuration Translation module. 3
ConfigTranslationFieldListBuilder class Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php Defines the config translation list builder for field entities.
ConfigTranslationFormAccess class Drupal\config_translation\Access core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php Checks access for displaying the translation add, edit, and delete forms. 2
ConfigTranslationFormBase abstract class Drupal\config_translation\Form core/modules/config_translation/src/Form/ConfigTranslationFormBase.php Provides a base form for configuration translations. 2 1
ConfigTranslationFormTest class Drupal\Tests\config_translation\Kernel core/modules/config_translation/tests/src/Kernel/ConfigTranslationFormTest.php Tests for altering configuration translation forms.
ConfigTranslationInstallTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php Installs the config translation module on a site installed in non english.
ConfigTranslationListController class Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationListController.php Defines the configuration translation list controller.
ConfigTranslationListUiTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php Visit all lists.
ConfigTranslationLocalTask class Drupal\config_translation\Plugin\Menu\LocalTask core/modules/config_translation/src/Plugin/Menu/LocalTask/ConfigTranslationLocalTask.php Defines a local task plugin with a dynamic title.
ConfigTranslationLocalTasks class Drupal\config_translation\Plugin\Derivative core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php Provides dynamic local tasks for config translation. 1
ConfigTranslationMapperList class Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php Defines the configuration translation mapper list.
ConfigTranslationOverviewAccess class Drupal\config_translation\Access core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php Checks access for displaying the configuration translation overview. 1 2
ConfigTranslationOverviewTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php Translate settings and entities to various languages.
ConfigTranslationTestSubscriber class Drupal\config_translation_test\EventSubscriber core/modules/config_translation/tests/modules/config_translation_test/src/EventSubscriber/ConfigTranslationTestSubscriber.php Adds configuration names to configuration mapper on POPULATE_MAPPER event. 2
ConfigTranslationUiTest class Drupal\Tests\config_translation\FunctionalJavascript core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php Translate settings and entities to various languages.
ConfigTranslationUiTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Translate settings and entities to various languages.
ConfigTranslationUiThemeTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationUiThemeTest.php Verifies theme configuration translation settings.
ConfigTranslationViewListUiTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php Visit view list and test if translate is available.
ConfigUninstallViaCliImportTest class Drupal\Tests\config\Kernel core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php Tests importing configuration from files into active configuration.
ConfigurableActionBase abstract class Drupal\Core\Action core/lib/Drupal/Core/Action/ConfigurableActionBase.php Provides a base implementation for a configurable Action plugin. 8 8
ConfigurableImageEffectBase abstract class Drupal\image core/modules/image/src/ConfigurableImageEffectBase.php Provides a base class for configurable image effects. 4 4
ConfigurableImageEffectInterface interface Drupal\image core/modules/image/src/ConfigurableImageEffectInterface.php Defines the interface for configurable image effects. 1 2
ConfigurableInterface interface Drupal\Component\Plugin core/lib/Drupal/Component/Plugin/ConfigurableInterface.php Provides an interface for a configurable plugin. 17 22
ConfigurableLanguage class Drupal\language\Entity core/modules/language/src/Entity/ConfigurableLanguage.php Defines the ConfigurableLanguage entity. 205
ConfigurableLanguageHalJsonAnonTest class Drupal\Tests\hal\Functional\language core/modules/hal/tests/src/Functional/language/ConfigurableLanguageHalJsonAnonTest.php @group hal @group legacy
ConfigurableLanguageHalJsonBasicAuthTest class Drupal\Tests\hal\Functional\language core/modules/hal/tests/src/Functional/language/ConfigurableLanguageHalJsonBasicAuthTest.php @group hal @group legacy
ConfigurableLanguageHalJsonCookieTest class Drupal\Tests\hal\Functional\language core/modules/hal/tests/src/Functional/language/ConfigurableLanguageHalJsonCookieTest.php @group hal @group legacy
ConfigurableLanguageInterface interface Drupal\language core/modules/language/src/ConfigurableLanguageInterface.php Provides an interface defining a language entity. 1 6
ConfigurableLanguageJsonAnonTest class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageJsonAnonTest.php @group rest
ConfigurableLanguageJsonBasicAuthTest class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageJsonBasicAuthTest.php @group rest
ConfigurableLanguageJsonCookieTest class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageJsonCookieTest.php @group rest
ConfigurableLanguageManager class Drupal\language core/modules/language/src/ConfigurableLanguageManager.php Overrides default LanguageManager to provide configured languages. 3
ConfigurableLanguageManagerInterface interface Drupal\language core/modules/language/src/ConfigurableLanguageManagerInterface.php Common interface for language negotiation services. 1 14
ConfigurableLanguageManagerTest class Drupal\Tests\language\Kernel core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php Tests the ConfigurableLanguage entity.
ConfigurableLanguageManagerTest class Drupal\Tests\language\Functional core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php Tests Language Negotiation.
ConfigurableLanguageRenderer class Drupal\views\Entity\Render core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php Renders entities in a configured language.
ConfigurableLanguageResourceTestBase abstract class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php 9 3
ConfigurableLanguageTest class Drupal\Tests\language\Kernel core/modules/language/tests/src/Kernel/ConfigurableLanguageTest.php Tests the ConfigurableLanguage entity.
ConfigurableLanguageTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php JSON:API integration test for the "ConfigurableLanguage" config entity type.
ConfigurableLanguageUnitTest class Drupal\Tests\language\Unit core/modules/language/tests/src/Unit/ConfigurableLanguageUnitTest.php Tests the ConfigurableLanguage entity class.
ConfigurableLanguageXmlAnonTest class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageXmlAnonTest.php @group rest
ConfigurableLanguageXmlBasicAuthTest class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageXmlBasicAuthTest.php @group rest
ConfigurableLanguageXmlCookieTest class Drupal\Tests\language\Functional\Rest core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageXmlCookieTest.php @group rest
ConfigurableLinkManagerInterface interface Drupal\hal\LinkManager core/modules/hal/src/LinkManager/ConfigurableLinkManagerInterface.php Defines an interface for a link manager with a configurable domain. 2
ConfigurablePlugin class Drupal\Tests\Core\Plugin core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.