Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| PhpPasswordArgon2idIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Argon2id specific integration tests for the PHP password hashing service. | ||||
| PhpPasswordBcryptIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Bcrypt specific integration tests for the PHP password hashing service. | ||||
| PhpPasswordDefaultIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Integration tests for the PHP password hashing service. | ||||
| PhpPasswordTest | class | Drupal\Tests\Core\Password | core/ |
Unit tests for password hashing API. | ||||
| PhpPasswordUnknownAlgorithmIntegrationTest | class | Drupal\KernelTests\Core\Password | core/ |
Integration tests for the PHP password hashing service. | ||||
| PhpRequirements | final class | Drupal\Core\Utility | core/ |
Provides an object for dynamically identifying the minimum supported PHP. | 6 | |||
| PhpRequirementsTest | class | Drupal\Tests\Core\Utility | core/ |
Tests the \Drupal\Core\Utility\PhpRequirements class. | ||||
| PhpRequirementTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests the output of PHP requirements on the status report. | ||||
| PhpScriptFilter | class | phpcs | core/ |
Allows .sh files explicitly listed in phpcs.xml.dist to be scanned as PHP. | ||||
| PhpSelection | class | Drupal\Core\Entity\Plugin\EntityReferenceSelection | core/ |
Defines an alternative to the default Entity Reference Selection plugin. | ||||
| PhpSerialize | class | Drupal\Component\Serialization | core/ |
Default serialization for serialized PHP. | 4 | 2 | ||
| PhpStorageFactory | class | Drupal\Core\PhpStorage | core/ |
Creates a php storage object. | 5 | |||
| PhpStorageFactoryTest | class | Drupal\Tests\system\Kernel\PhpStorage | core/ |
Tests the PHP storage factory. | ||||
| PhpStorageInterface | interface | Drupal\Component\PhpStorage | core/ |
Stores and loads PHP code. | 2 | 2 | ||
| PhpStorageTestBase | abstract class | Drupal\Tests\Component\PhpStorage | core/ |
Base test for PHP storages. | 3 | |||
| PhpStreamWrapperInterface | interface | Drupal\Core\StreamWrapper | core/ |
Defines a generic PHP stream wrapper interface. | 1 | |||
| PhpTransliteration | class | Drupal\Core\Transliteration | core/ |
Enhances PhpTransliteration with an alter hook. | 2 | 2 | ||
| PhpTransliteration | class | Drupal\Component\Transliteration | core/ |
Implements transliteration without using the PECL extensions. | 1 | 3 | ||
| PhpTransliterationTest | class | Drupal\Tests\Core\Transliteration | core/ |
Tests Transliteration component functionality. | ||||
| PhpTransliterationTest | class | Drupal\Tests\Component\Transliteration | core/ |
Tests Transliteration component functionality. | ||||
| PhpTufValidator | final class | Drupal\package_manager\Validator | core/ |
Validates that PHP-TUF is installed and correctly configured. | 2 | |||
| PhpTufValidatorInvalidConfigTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\Validator\PhpTufValidator. | ||||
| PhpTufValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\Validator\PhpTufValidator. | ||||
| PhpUnitApiFindAllClassFilesTest | class | Drupal\KernelTests\Core\Test | core/ |
Tests ::findAllClassFiles(). | ||||
| PhpUnitApiGetTestClassesTest | class | Drupal\KernelTests\Core\Test | core/ |
Tests ::getTestClasses(). | ||||
| PhpUnitAutoloaderTest | class | Drupal\Tests\Core\Test | core/ |
Tests that classes are correctly loaded during PHPUnit initialization. | ||||
| PhpUnitBridgeIsolatedTest | class | Drupal\Tests\Core\Test | core/ |
Test how unit tests interact with deprecation errors in process isolation. | ||||
| PhpUnitBridgeTest | class | Drupal\Tests\Core\Test | core/ |
Test how unit tests interact with deprecation errors. | ||||
| PhpUnitBridgeTest | class | Drupal\KernelTests\Core\Test | core/ |
Test how kernel tests interact with deprecation errors. | ||||
| PhpUnitBridgeTest | class | Drupal\FunctionalTests\Core\Test | core/ |
Tests Drupal's extension to manage code deprecation. | ||||
| PhpUnitTestDiscovery | class | Drupal\Core\Test | core/ |
Discovers available tests using the PHPUnit API. | 3 | |||
| PhpUnitTestDiscoveryTest | class | Drupal\KernelTests\Core\Test | core/ |
Tests equality of test discovery between run-tests.sh and PHPUnit CLI. | ||||
| PhpUnitTestDiscoveryTracer | class | Drupal\Core\Test | core/ |
Traces events dispatched by PHPUnit during the test discovery. | ||||
| PhpUnitTestDummyClass | class | Drupal\phpunit_test | core/ |
Dummy test class. | ||||
| PhpUnitTestRunner | class | Drupal\Core\Test | core/ |
Run PHPUnit-based tests. | 2 | |||
| PhpUnitTestRunnerTest | class | Drupal\Tests\Core\Test | core/ |
Tests Drupal\Core\Test\PhpUnitTestRunner. | ||||
| PirateDayCacheabilityMetadataConfigOverride | class | Drupal\config_override_test | core/ |
Test implementation of a config override that provides cacheability metadata. | 2 | |||
| PirateDayCacheContext | class | Drupal\config_override_test\Cache | core/ |
Defines the PirateDayCacheContext service that allows to cache the booty. | 2 | 2 | ||
| PlaceBlock | final class | Drupal\block\Plugin\ConfigAction | core/ |
Places a block in either the admin or default theme. | 1 | |||
| PlaceBlockDeriver | final class | Drupal\block\Plugin\ConfigAction | core/ |
Defines a deriver for the `placeBlock` config action. | 1 | |||
| PlaceholderGenerator | class | Drupal\Core\Render | core/ |
Turns a render array into a placeholder. | 3 | 2 | ||
| PlaceholderGeneratorInterface | interface | Drupal\Core\Render | core/ |
Defines an interface for turning a render array into a placeholder. | 1 | 3 | ||
| PlaceholderGeneratorTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\PlaceholderGenerator. | ||||
| PlaceholderingRenderCache | class | Drupal\Core\Render | core/ |
Adds automatic placeholdering to the RenderCache. | 1 | 3 | 2 | |
| PlaceholderInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for a query that accepts placeholders. | 3 | 2 | ||
| PlaceholderMessageTest | class | Drupal\Tests\system\Functional\Render | core/ |
Functional test verifying that messages set in placeholders always appear. | ||||
| PlaceholdersTest | class | Drupal\Tests\Core\Render | core/ |
Placeholders test class with implemented trusted callbacks. | ||||
| PlaceholderStrategyInterface | interface | Drupal\Core\Render\Placeholder | core/ |
Provides an interface for defining a placeholder strategy service. | 4 | 2 | ||
| PlainTextOutput | class | Drupal\Component\Render | core/ |
Provides an output strategy for transforming HTML into simple plain text. | 19 | |||
| PlainTextOutputTest | class | Drupal\Tests\Component\Render | core/ |
Tests Drupal\Component\Render\PlainTextOutput. |
Pagination
- Previous page
- Page 159
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.