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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 1 | |||
| 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. | ||||
| SchemaConfigListenerTest | class | Drupal\FunctionalTests\Core\Config | core/ |
Tests the functionality of ConfigSchemaChecker in BrowserTestBase tests. | ||||
| SchemaConfigListenerTestTrait | trait | Drupal\Tests\Traits\Core\Config | core/ |
Adds a test for the configuration schema checker use in tests. | 2 | |||
| SchemaConfigListenerWebTest | class | Drupal\Tests\config\Functional | core/ |
Tests the functionality of ConfigSchemaChecker in BrowserTestBase tests. | ||||
| SchemaException | class | Drupal\Core\Database | core/ |
Base exception for Schema-related errors. | 5 | 7 | ||
| SchemaIncompleteException | class | Drupal\Core\Config\Schema | core/ |
An exception thrown when a config schema is incomplete. | 10 | |||
| SchemaInspector | class | Drupal\TestTools\Extension | core/ |
Provides methods to access modules' schema. | 2 | |||
| SchemaIntrospectionTestTrait | trait | Drupal\Tests\Core\Database | core/ |
Provides methods for testing database schema characteristics. | 1 | |||
| SchemaListenerController | class | Drupal\config_test | core/ |
Controller for testing \Drupal\Core\Config\Development\ConfigSchemaChecker. | ||||
| SchemaObjectDoesNotExistException | class | Drupal\Core\Database | core/ |
Exception thrown if an object being modified doesn't exist yet. | 4 | |||
| SchemaObjectExistsException | class | Drupal\Core\Database | core/ |
Exception thrown if an object being created already exists. | 5 | |||
| SchemaPrimaryKeyMustBeDroppedException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if the Primary Key must be dropped before an operation. | 2 | |||
| SchemaTableColumnSizeTooLargeException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if a column size is too large on table creation. | 3 | |||
| SchemaTableKeyTooLargeException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if a key is too large. | 3 | |||
| SchemaTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests schema API for the MySQL driver. | 1 | 1 | ||
| SchemaTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests schema API for the SQLite driver. |
Pagination
- Previous page
- Page 169
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.