Classes, traits, and interfaces - 11.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 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ConfigTranslationContextualLinks class Drupal\config_translation\Plugin\Derivative core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php Provides dynamic contextual links for configuration translation. 1
ConfigTranslationController class Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationController.php Provides page callbacks for the configuration translation interface.
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.
ConfigTranslationHooks class Drupal\config_translation\Hook core/modules/config_translation/src/Hook/ConfigTranslationHooks.php Hook implementations for config_translation.
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.
ConfigTranslationTestHooks class Drupal\config_translation_test\Hook core/modules/config_translation/tests/modules/config_translation_test/src/Hook/ConfigTranslationTestHooks.php Hook implementations for config_translation_test.
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
ConfigTranslationUiModulesTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php Translate settings and entities to various languages.
ConfigTranslationUiSiteInformationTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationUiSiteInformationTest.php Translate site information to various languages.
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.
ConfigTranslationUiTestBase abstract class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTestBase.php Translate settings and entities to various languages. 3
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. 16 24
ConfigurableLanguage class Drupal\language\Entity core/modules/language/src/Entity/ConfigurableLanguage.php Defines the ConfigurableLanguage entity. 214
ConfigurableLanguageInterface interface Drupal\language core/modules/language/src/ConfigurableLanguageInterface.php Provides an interface defining a language entity. 1 7
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 15
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 6
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.
ConfigurableLanguageValidationTest class Drupal\Tests\language\Kernel core/modules/language/tests/src/Kernel/ConfigurableLanguageValidationTest.php Tests validation of configurable_language entities.

Other projects


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