Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
BubbleableMetadataTest | class | Drupal\Tests\Core\Render | core/ |
@coversDefaultClass \Drupal\Core\Render\BubbleableMetadata @group Render | ||||
BubblingTest | class | Drupal\Tests\Core\Render | core/ |
|||||
BuilderInterface | interface | Drupal\Composer\Generator | composer/ |
Produce the output for a metapackage. | 1 | 1 | ||
BuilderTest | class | Drupal\Tests\Composer\Generator | core/ |
Test DrupalCoreRecommendedBuilder | ||||
BuildTestBase | abstract class | Drupal\BuildTests\Framework | core/ |
Provides a workspace to test build processes. | 4 | 4 | ||
BuildTestSuite | class | Drupal\Tests\TestSuites | core/ |
Discovers tests for the build test suite. | ||||
BuildTestTest | class | Drupal\BuildTests\Framework\Tests | core/ |
@coversDefaultClass \Drupal\BuildTests\Framework\BuildTestBase @group Build | ||||
BulkDeleteTest | class | Drupal\Tests\field\Kernel | core/ |
Bulk delete storages and fields, and clean up afterwards. | ||||
BulkForm | class | Drupal\views\Plugin\views\field | core/ |
Defines a actions-based bulk operation form element. | 4 | 4 | ||
BulkForm | in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\views\Plugin\views\field\BulkForm instead. |
class | Drupal\system\Plugin\views\field | core/ |
Defines a actions-based bulk operation form element. | |||
BulkFormAccessTest | class | Drupal\Tests\node\Functional\Views | core/ |
Tests if entity access is respected on a node bulk operations form. | ||||
BulkFormAccessTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests if entity access is respected on a user bulk form. | ||||
BulkFormTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests a user bulk form. | ||||
BulkFormTest | class | Drupal\Tests\node\Functional\Views | core/ |
Tests a node bulk form. | ||||
BulkFormTest | class | Drupal\Tests\views\Functional | core/ |
Tests the views bulk form test. | ||||
BulkFormUpdateTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests Views image style dependencies update. | ||||
Bundle | class | Drupal\views\Plugin\views\filter | core/ |
Filter class which allows filtering by entity bundles. | ||||
BundleConfigImportValidate | class | Drupal\Core\Entity\Event | core/ |
Entity config importer validation event subscriber. | 2 | |||
BundleConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if a value is a valid entity type. | 1 | |||
BundleConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the Bundle constraint. | ||||
BundleConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation constraints for BundleConstraintValidator. | ||||
BundleEntityFormBase | class | Drupal\Core\Entity | core/ |
Class BundleEntityFormBase is a base form for bundle config entities. | 4 | 5 | ||
BundleTranslationSettingsInterface | interface | Drupal\content_translation | core/ |
Interface providing support for content translation bundle settings. | 1 | 2 | ||
Button | class | Drupal\Core\Render\Element | core/ |
Provides an action button form element. | 1 | |||
Bytes | class | Drupal\Component\Utility | core/ |
Provides helper methods for byte conversions. | 11 | |||
BytesTest | class | Drupal\Tests\Component\Utility | core/ |
Tests bytes size parsing helper methods. | ||||
Cache | class | Drupal\Core\Cache | core/ |
Helper methods for cache. | 216 | |||
CacheabilityMetadataConfigOverride | class | Drupal\config_override_integration_test | core/ |
Test implementation of a config override that provides cacheability metadata. | 2 | |||
CacheabilityMetadataConfigOverrideIntegrationTest | class | Drupal\Tests\config\Functional | core/ |
Tests if configuration overrides correctly affect cacheability metadata. | ||||
CacheabilityMetadataConfigOverrideTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests if configuration overrides correctly affect cacheability metadata. | ||||
CacheabilityMetadataUpdateTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests that views cacheability metadata post update hook runs properly. | ||||
CacheableAccessDeniedHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable AccessDeniedHttpException. | 1 | 4 | ||
CacheableBadRequestHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable BadRequestHttpException. | 11 | |||
CacheableConflictHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable ConflictHttpException. | ||||
CacheableDependencyInterface | interface | Drupal\Core\Cache | core/ |
Defines an interface for objects which may be used by other cached objects. | 63 | 80 | ||
CacheableDependencyTrait | trait | Drupal\Core\Cache | core/ |
Trait for \Drupal\Core\Cache\CacheableDependencyInterface. | 21 | |||
CacheableGoneHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable GoneHttpException. | ||||
CacheableHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable HttpException. | 1 | |||
CacheableJsonResponse | class | Drupal\Core\Cache | core/ |
A JsonResponse that contains and can expose cacheability metadata. | 6 | |||
CacheableLengthRequiredHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable LengthRequiredHttpException. | ||||
CacheableMetadata | class | Drupal\Core\Cache | core/ |
Defines a generic class for passing cacheability metadata. | 2 | 144 | ||
CacheableMetadataCalculationTest | class | Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access | core/ |
Tests plugin that reports when cacheable metadata is being calculated. | ||||
CacheableMetadataCalculationTest | class | Drupal\Tests\views\Kernel | core/ |
Tests that cacheability metadata is only calculated when needed. | ||||
CacheableMetadataTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\CacheableMetadata @group Cache | ||||
CacheableMethodNotAllowedHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable MethodNotAllowedHttpException. | 1 | |||
CacheableNormalization | class | Drupal\jsonapi\Normalizer\Value | core/ |
Use to store normalized data and its cacheability. | 2 | 15 | ||
CacheableNormalizerInterface | interface | Drupal\serialization\Normalizer | core/ |
Defines the interface for normalizers producing cacheable normalizations. | 1 | 4 | ||
CacheableNotAcceptableHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable NotAcceptableHttpException. | ||||
CacheableNotFoundHttpException | class | Drupal\Core\Http\Exception | core/ |
A cacheable NotFoundHttpException. | 2 | |||
CacheableOmission | final class | Drupal\jsonapi\Normalizer\Value | core/ |
Represents the cacheability associated with the omission of a value. | 2 |
Pagination
- Previous page
- Page 17
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.