Classes, traits, and interfaces - 10.3.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
ConfigTestAccessControlHandler class Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestAccessControlHandler.php Defines the access control handler for the config_test entity type.
ConfigTestController class Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestController.php Route controller class for the config_test module.
ConfigTestForm class Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestForm.php Form controller for the test config edit forms.
ConfigTestInterface interface Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestInterface.php Provides an interface defining a config_test entity. 1 1
ConfigTestJsonAnonTest class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestJsonAnonTest.php @group rest
ConfigTestJsonBasicAuthTest class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestJsonBasicAuthTest.php @group rest
ConfigTestJsonCookieTest class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestJsonCookieTest.php @group rest
ConfigTestListBuilder class Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestListBuilder.php Defines a class to build a listing of ConfigTest entities.
ConfigTestResourceTestBase abstract class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php 6
ConfigTestStorage class Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestStorage.php
ConfigTestTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/ConfigTestTest.php JSON:API integration test for the "ConfigTest" config entity type.
ConfigTestTrait trait Drupal\Tests core/tests/Drupal/Tests/ConfigTestTrait.php Provides helper methods to deal with config system objects in tests. 1
ConfigTestXmlAnonTest class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestXmlAnonTest.php @group rest
ConfigTestXmlBasicAuthTest class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestXmlBasicAuthTest.php @group rest
ConfigTestXmlCookieTest class Drupal\Tests\config_test\Functional\Rest core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestXmlCookieTest.php @group rest
ConfigTranslationAddForm class Drupal\config_translation\Form core/modules/config_translation/src/Form/ConfigTranslationAddForm.php Defines a form for adding configuration translations. 1
ConfigTranslationBlockListBuilder class Drupal\config_translation\Controller core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php Defines the config translation list builder for blocks.
ConfigTranslationCacheTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/ConfigTranslationCacheTest.php Translate settings and entities to various languages.
ConfigTranslationContextualLink class Drupal\config_translation\Plugin\Menu\ContextualLink core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php Defines a contextual link plugin with a dynamic title.
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.
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
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

Other projects


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