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 |
|---|---|---|---|---|---|---|---|---|
| SecuredRedirectResponseTest | class | Drupal\Tests\Component\HttpFoundation | core/ |
Test secure redirect base class. | ||||
| SecuredRedirectStub | class | Drupal\Tests\Component\HttpFoundation | core/ |
Test class for safe redirects. | ||||
| SecurityAdvisoriesFetcher | final class | Drupal\system\SecurityAdvisories | core/ |
Defines a service to get security advisories. | 2 | 2 | ||
| SecurityAdvisoriesFetcherTest | class | Drupal\Tests\system\Kernel\SecurityAdvisories | core/ |
Tests Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher. | ||||
| SecurityAdvisory | final class | Drupal\system\SecurityAdvisories | core/ |
Provides a security advisory value object. | 1 | |||
| SecurityAdvisoryTest | class | Drupal\Tests\system\Unit\SecurityAdvisories | core/ |
Tests Drupal\system\SecurityAdvisories\SecurityAdvisory. | ||||
| SecurityAdvisoryTest | class | Drupal\Tests\system\Functional\SecurityAdvisories | core/ |
Tests of security advisories functionality. | ||||
| SecurityFileUploadEventSubscriber | class | Drupal\system\EventSubscriber | core/ |
The final subscriber to 'file.upload.sanitize.name'. | 1 | 2 | ||
| SecurityFileUploadEventSubscriberTest | class | Drupal\Tests\system\Unit\Event | core/ |
SecurityFileUploadEventSubscriber tests. | ||||
| SeeTest | abstract class | Drupal\Tests\Core\Foo | core/ |
With some docs. | ||||
| Select | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Select. | ||||
| Select | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a drop-down menu or scrolling selection box. | 2 | |||
| Select | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of the MySQL query builder for SELECT statements. | ||||
| Select | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Select. | ||||
| Select | class | Drupal\Core\Database\Query | core/ |
Query builder for SELECT statements. | 4 | 11 | ||
| Select | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Select. | ||||
| SelectCloneTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests cloning Select queries. | ||||
| SelectComplexTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder with more complex queries. | ||||
| SelectExtender | class | Drupal\Core\Database\Query | core/ |
The base extender class for Select queries. | 3 | 5 | ||
| SelectExtenderTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query extender classes. | ||||
| SelectGetRangeTest | final class | Drupal\KernelTests\Core\Database | core/ |
Tests SelectInterface::getRange(). | ||||
| SelectInterface | interface | Drupal\Core\Database\Query | core/ |
Interface definition for a Select Query object. | 2 | 32 | ||
| SelectionInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Interface definition for Entity Reference Selection plugins. | 1 | 3 | 2 | |
| SelectionPluginBase | abstract class | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Provides a base class for configurable selection handlers. | 3 | 3 | ||
| SelectionPluginManager | class | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Plugin type manager for Entity Reference Selection plugins. | 2 | |||
| SelectionPluginManagerInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Defines an interface for the entity reference selection plugin manager. | 1 | 5 | ||
| SelectionTest | class | Drupal\Tests\field\Kernel\EntityReference\Views | core/ |
Tests entity reference selection handler. | ||||
| SelectionTest | class | Drupal\Tests\field\Functional\EntityReference\Views | core/ |
Tests entity reference selection handler. | ||||
| SelectionWithAutocreateInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Interface for Selection plugins that support newly created entities. | 1 | 3 | ||
| SelectLanguageForm | class | Drupal\Core\Installer\Form | core/ |
Provides the language selection form. | ||||
| SelectLeastTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the SQL LEAST operator. | ||||
| SelectOrderedTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder. | ||||
| SelectPagerDefaultTest | class | Drupal\Tests\system\Functional\Database | core/ |
Tests the pager query select extender. | ||||
| SelectProfileForm | class | Drupal\Core\Installer\Form | core/ |
Provides the profile selection form. | 1 | |||
| SelectSubqueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder. | ||||
| SelectTableSortDefaultTest | class | Drupal\Tests\system\Functional\Database | core/ |
Tests the tablesort query extender. | ||||
| SelectTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder. | ||||
| SemanticVersion | class | Drupal\Composer\Util | composer/ |
Utility methods for manipulating semantic versions. | 1 | |||
| SemVer | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
Helper class to manipulate semantic versioning constraints. | 1 | |||
| SemVerTest | class | Drupal\Tests\Composer\Plugin\Unpack | core/ |
Tests Drupal\Composer\Plugin\RecipeUnpack\SemVer. | ||||
| SendmailCommandValidationTransportFactory | class | Drupal\Core\Mailer\Transport | core/ |
Command validation decorator for sendmail transport factory. | ||||
| SeparatorTranslationTest | class | Drupal\Tests\datetime_range\Kernel | core/ |
Test to ensure the datetime range separator is translatable. | ||||
| Sequence | class | Drupal\Core\Config\Schema | core/ |
Defines a configuration element of type Sequence. | 2 | 1 | ||
| SequenceDataDefinition | class | Drupal\Core\Config\Schema | core/ |
A typed data definition class for defining sequences in configuration. | 4 | 1 | ||
| SequencesTableRemovalUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path for removing the sequences table. | ||||
| SequentiallyConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks constraints sequentially and shows the error from the first. | 1 | |||
| SequentiallyConstraintValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests Sequentially validation constraint with both valid and invalid values. | ||||
| SerializationHooks | class | Drupal\serialization\Hook | core/ |
Hook implementations for serialization. | ||||
| SerializationInterface | interface | Drupal\Component\Serialization | core/ |
Defines an interface for serialization formats. | 4 | 5 | ||
| SerializationServiceProvider | class | Drupal\serialization | core/ |
Serialization dependency injection container. |
Pagination
- Previous page
- Page 175
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.