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 |
|---|---|---|---|---|---|---|---|---|
| RsyncValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Rsync Validator. | ||||
| RunnerVersion | final class | Drupal\TestTools\PhpUnitCompatibility | core/ |
Helper class to determine information about running PHPUnit version. | 1 | |||
| RunTimeRequirementsTest | class | Drupal\Tests\system\Kernel\System | core/ |
Tests the effectiveness of hook_runtime_requirements(). | ||||
| SafeMarkupTestMarkup | class | Drupal\KernelTests\Core\Theme | core/ |
Implements MarkupInterface without implementing \Countable. | ||||
| SameModuleChild | class | Drupal\drupal_debug_test_core | core/ |
Fixture: child in the same module as the parent. | ||||
| SampleEntityGeneratorInterface | interface | Drupal\layout_builder\Entity | core/ |
Generates a sample entity. | 1 | 2 | ||
| SandboxDatabaseUpdatesValidator | class | Drupal\package_manager\Validator | core/ |
Flags a warning if there are database updates in a staged update. | 1 | 3 | ||
| SandboxDirectoryValidator | final class | Drupal\package_manager\Validator | core/ |
Validates staging root is not a subdirectory of active. | 1 | |||
| SandboxDirectoryValidatorTest | class | Drupal\Tests\package_manager\Unit | core/ |
Tests Drupal\package_manager\Validator\SandboxDirectoryValidator. | ||||
| SandboxEvent | abstract class | Drupal\package_manager\Event | core/ |
Base class for all events related to the life cycle of the stage. | 5 | 8 | ||
| SandboxEventException | class | Drupal\package_manager\Exception | core/ |
Exception thrown if an error related to an event occurs. | 12 | |||
| SandboxException | class | Drupal\package_manager\Exception | core/ |
Base class for all exceptions related to stage operations. | 3 | 6 | ||
| SandboxManagerBase | abstract class | Drupal\package_manager | core/ |
Creates and manages a stage directory in which to install or update code. | 3 | 18 | ||
| SandboxManagerBaseTest | class | Drupal\Tests\package_manager\Unit | core/ |
Tests Drupal\package_manager\SandboxManagerBase. | ||||
| SandboxManagerBaseTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\SandboxManagerBase. | ||||
| SandboxOwnershipException | final class | Drupal\package_manager\Exception | core/ |
Exception thrown if a stage encounters an ownership or locking error. | 2 | |||
| SandboxValidationEvent | abstract class | Drupal\package_manager\Event | core/ |
Base class for events dispatched before a stage life cycle operation. | 4 | 23 | ||
| SanitizeNameTest | class | Drupal\Tests\file\Unit | core/ |
Filename sanitization tests. | ||||
| SaveAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Provides an action that can save any entity. | ||||
| SaveActionTest | class | Drupal\KernelTests\Core\Action | core/ |
Tests Save Action. | ||||
| SaveEntity | class | Drupal\action_test\Plugin\Action | core/ |
Provides an operation to save user entities. | ||||
| SaveTest | class | Drupal\Tests\file\Kernel | core/ |
File saving tests. | ||||
| SaveUploadFormTest | class | Drupal\Tests\file\Functional | core/ |
Tests the _file_save_upload_from_form() function. | ||||
| SaveUploadTest | class | Drupal\Tests\file\Functional | core/ |
Tests the file_save_upload() function. | 1 | |||
| ScaffoldFileCollection | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Collection of scaffold files. | 2 | |||
| ScaffoldFileCollectionTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Integration | core/ |
Tests Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection. | ||||
| ScaffoldFileInfo | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Data object that keeps track of one scaffold file. | 1 | |||
| ScaffoldFilePath | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Manage the path to a file to scaffold. | 9 | |||
| ScaffoldOptions | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Per-project options from the 'extras' section of the composer.json file. | 8 | |||
| ScaffoldResult | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Record the result of a scaffold operation. | 2 | |||
| ScaffoldTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests Composer Scaffold. | ||||
| ScaffoldTestResult | class | Drupal\Tests\Composer\Plugin\Scaffold | core/ |
Holds result of a scaffold test. | 1 | |||
| ScaffoldUpgradeTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests Upgrading the Composer Scaffold plugin. | ||||
| Scale | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Scale operation. | ||||
| ScaleAndCrop | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Scale and crop operation. | ||||
| ScaleAndCropImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Scales and crops an image resource. | ||||
| ScaleImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Scales an image resource. | ||||
| ScanDirectoryTest | class | Drupal\KernelTests\Core\File | core/ |
Tests \Drupal\Core\File\FileSystem::scanDirectory. | 1 | |||
| Schema | class | Drupal\Tests\Core\Database\Stub\Driver | core/ |
A very minimal class for testing purposes. | 1 | |||
| Schema | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Schema. | 3 | |||
| Schema | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Schema. | ||||
| Schema | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Schema. | 1 | |||
| Schema | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Schema. | 1 | |||
| Schema | abstract class | Drupal\Core\Database | core/ |
Provides a base implementation for Database Schema. | 4 | 7 | ||
| SchemaCheckTestTrait | trait | Drupal\Tests | core/ |
Provides a class for checking configuration schema. | 38 | |||
| SchemaCheckTrait | trait | Drupal\Core\Config\Schema | core/ |
Provides a trait for checking configuration schema. | 4 | |||
| SchemaCheckTraitTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the functionality of SchemaCheckTrait. | ||||
| SchemaCompatibilityChecker | class | Drupal\Core\Theme\Component | core/ |
Checks whether two schemas are compatible. | 2 | |||
| SchemaCompatibilityCheckerTest | class | Drupal\Tests\Core\Theme\Component | core/ |
Tests Drupal\Core\Theme\Component\SchemaCompatibilityChecker. | ||||
| SchemaConfigListenerTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the functionality of ConfigSchemaChecker in KernelTestBase tests. |
Pagination
- Previous page
- Page 171
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.