Classes, traits, and interfaces - 8.9.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 1511

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ConfigTest class Drupal\Tests\migrate\Unit\destination core/modules/migrate/tests/src/Unit/destination/ConfigTest.php @coversDefaultClass \Drupal\migrate\Plugin\migrate\destination\Config @group migrate
ConfigTest class Drupal\Tests\Composer\Plugin\ProjectMessage core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php @coversDefaultClass Drupal\Composer\Plugin\ProjectMessage\Message @group ProjectMessage
ConfigTest class Drupal\Tests\Composer\Plugin\VendorHardening core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php @coversDefaultClass Drupal\Composer\Plugin\VendorHardening\Config @group VendorHardening
ConfigTest class Drupal\Tests\Core\Config core/tests/Drupal/Tests/Core/Config/ConfigTest.php Tests the Config.
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.
ConfigTestHalJsonAnonTest class Drupal\Tests\config_test\Functional\Hal core/modules/config/tests/config_test/tests/src/Functional/Hal/ConfigTestHalJsonAnonTest.php @group hal
ConfigTestHalJsonBasicAuthTest class Drupal\Tests\config_test\Functional\Hal core/modules/config/tests/config_test/tests/src/Functional/Hal/ConfigTestHalJsonBasicAuthTest.php @group hal
ConfigTestHalJsonCookieTest class Drupal\Tests\config_test\Functional\Hal core/modules/config/tests/config_test/tests/src/Functional/Hal/ConfigTestHalJsonCookieTest.php @group hal
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 10 4
ConfigTestResourceTestBase

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\config_test\Functional\Rest\ConfigTestResourceTestBase instead.

abstract class Drupal\Tests\rest\Functional\EntityResource\ConfigTest core/modules/rest/tests/src/Functional/EntityResource/ConfigTest/ConfigTestResourceTestBase.php
ConfigTestStorage class Drupal\config_test core/modules/config/tests/config_test/src/ConfigTestStorage.php @todo.
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. 2
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
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.

Other projects


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