Classes, traits, and interfaces - 11.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 1531 
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings | 
|---|---|---|---|---|---|---|---|---|
| BaseFieldOverrideStorage | class | Drupal\Core\Field | core/ | Storage class for base field overrides. | 1 | |||
| BaseFieldOverrideTest | class | Drupal\KernelTests\Core\Field\Entity | core/ | Tests Drupal\Core\Field\Entity\BaseFieldOverride. | ||||
| BaseFieldOverrideTest | class | Drupal\Tests\jsonapi\Functional | core/ | JSON:API integration test for the "BaseFieldOverride" config entity type. | ||||
| BaseFieldOverrideValidationTest | class | Drupal\KernelTests\Core\Entity | core/ | Tests validation of base_field_override entities. | ||||
| BaseFieldOverrideXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ | Tests Base Field Override Xml Anon. | ||||
| BaseFieldOverrideXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ | Tests Base Field Override Xml Basic Auth. | ||||
| BaseFieldOverrideXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ | Tests Base Field Override Xml Cookie. | ||||
| BaseFileConstraintValidator | abstract class | Drupal\file\Plugin\Validation\Constraint | core/ | Provides a base class for file constraint validators. | 7 | |||
| BaseFormIdInterface | interface | Drupal\Core\Form | core/ | Provides an interface for a Form that has a base form ID. | 5 | 5 | ||
| BaseRequirementsFulfilledValidator | final class | Drupal\package_manager\Validator | core/ | Validates that base requirements do not have any errors. | 1 | |||
| BaseRequirementsFulfilledValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ | Tests Base Requirements Fulfilled Validator. | ||||
| BaseRequirementValidatorTrait | trait | Drupal\package_manager\Validator | core/ | Provides methods for base requirement validators. | 1 | |||
| BaseThemeMissingTest | class | Drupal\KernelTests\Core\Theme | core/ | Tests the behavior of a theme when base_theme info key is missing. | ||||
| BaseThemeRequiredTest | class | Drupal\KernelTests\Core\Theme | core/ | Tests the behavior of the `base theme` key. | ||||
| Basic | class | Drupal\views\Plugin\views\exposed_form | core/ | Exposed form plugin that provides a basic exposed form. | ||||
| BasicAuth | class | Drupal\basic_auth\Authentication\Provider | core/ | HTTP Basic authentication provider. | 2 | |||
| BasicAuthHooks | class | Drupal\basic_auth\Hook | core/ | Hook implementations for basic_auth. | ||||
| BasicAuthResourceTestTrait | trait | Drupal\Tests\rest\Functional | core/ | Trait for ResourceTestBase subclasses testing $auth=basic_auth. | 96 | |||
| BasicAuthTest | class | Drupal\Tests\basic_auth\Functional | core/ | Tests for BasicAuth authentication provider. | ||||
| BasicAuthTestController | class | Drupal\basic_auth_test | core/ | Provides routes for HTTP Basic Authentication testing. | ||||
| BasicAuthTestTrait | trait | Drupal\Tests\basic_auth\Traits | core/ | Provides common functionality for Basic Authentication test classes. | 2 | |||
| BasicControllerClass | class | Drupal\Tests\Core\Entity | core/ | A class containing all kind of different controller methods. | ||||
| BasicForm | class | Drupal\Tests\Core\Entity | core/ | A basic form with a passed entity with an interface. | ||||
| BasicFormNoContainerInjectionInterface | class | Drupal\Tests\Core\Entity | core/ | A basic form without a container injection interface implemented. | ||||
| BasicFormNoUpcasting | class | Drupal\Tests\Core\Entity | core/ | A basic form with a passed entity without an interface. | ||||
| BasicRecursiveValidatorFactory | class | Drupal\Core\Validation | core/ | A factory for creating Symfony recursive validators. | 2 | 2 | ||
| BasicSettingsForm | class | Drupal\views_ui\Form | core/ | Form builder for the admin display defaults page. | 1 | |||
| BasicStringFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ | Plugin implementation of the 'basic_string' formatter. | ||||
| BasicSyntaxTest | class | Drupal\KernelTests\Core\Database | core/ | Tests SQL syntax interpretation. | ||||
| BasicTest | class | Drupal\Tests\views\Kernel | core/ | A basic query test for Views. | ||||
| BasicTest | class | Drupal\Tests\views\Functional\Wizard | core/ | Tests creating views with the wizard and viewing them on the listing page. | ||||
| Batch | class | Drupal\Core\Queue | core/ | Defines a batch queue handler used by the Batch API. | ||||
| BatchBuilder | class | Drupal\Core\Batch | core/ | Builds an array for a batch process. | 17 | |||
| BatchBuilderTest | class | Drupal\Tests\Core\Batch | core/ | Tests for the batch builder class. | ||||
| BatchController | class | Drupal\system\Controller | core/ | Controller routines for batch routes. | 1 | |||
| BatchControllerTest | class | Drupal\Tests\system\Unit\Batch | core/ | Tests for the batch controller class. | ||||
| BatchKernelTest | class | Drupal\KernelTests\Core\Batch | core/ | Tests batch functionality. | ||||
| BatchMemory | class | Drupal\Core\Queue | core/ | Defines a batch queue handler. | ||||
| BatchNegotiator | class | Drupal\system\Theme | core/ | Sets the active theme for the batch page. | 2 | |||
| BatchNegotiatorTest | class | Drupal\KernelTests\Core\Batch | core/ | Tests the BatchNegotiator. | ||||
| BatchNotFoundTest | class | Drupal\Tests\system\Functional\Batch | core/ | Tests if a page not found error is returned when a batch ID does not exist. | ||||
| BatchStorage | class | Drupal\Core\Batch | core/ | Defines the storage handler class for batches. | 2 | |||
| BatchStorage | class | Drupal\Core\ProxyClass\Batch | core/ | Provides a proxy class for \Drupal\Core\Batch\BatchStorage. | ||||
| BatchStorageInterface | interface | Drupal\Core\Batch | core/ | Defines a common interface for batch storage operations. | 2 | 5 | ||
| BatchTestCallbacks | class | Drupal\batch_test | core/ | Batch callbacks for testing batches. | 2 | |||
| BatchTestChainedForm | class | Drupal\batch_test\Form | core/ | Generate form of id batch_test_chained_form. | 1 | |||
| BatchTestController | class | Drupal\batch_test\Controller | core/ | Controller routines for batch tests. | ||||
| BatchTestDefinitions | class | Drupal\batch_test | core/ | Batch definitions for testing batches. | 4 | |||
| BatchTestHelper | class | Drupal\batch_test | core/ | Batch helper for testing batches. | 8 | |||
| BatchTestMockForm | class | Drupal\batch_test\Form | core/ | Generate form of id batch_test_mock_form. | 
Pagination
- Previous page
- Page 11
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
