Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
SearchPluginManager | class | Drupal\search | core/ |
SearchExecute plugin manager. | 2 | |||
SearchQuery | class | Drupal\search | core/ |
Search query extender and helper functions. | 1 | 2 | ||
SearchRow | class | Drupal\search\Plugin\views\row | core/ |
Row handler plugin for displaying search results. | ||||
SearchTextProcessor | class | Drupal\search | core/ |
Processes search text for indexing. | 2 | |||
SearchTextProcessorInterface | interface | Drupal\search | core/ |
Processes search text for indexing. | 1 | 1 | ||
Section | class | Drupal\layout_builder | core/ |
Provides a domain object for layout sections. | 10 | |||
SectionComponent | class | Drupal\layout_builder | core/ |
Provides a value object for a section component. | 5 | |||
SectionComponentBuildRenderArrayEvent | class | Drupal\layout_builder\Event | core/ |
Event fired when a section component's render array is being built. | 2 | |||
SectionData | class | Drupal\layout_builder\Plugin\DataType | core/ |
Provides a data type wrapping \Drupal\layout_builder\Section. | ||||
SectionListInterface | interface | Drupal\layout_builder | core/ |
Defines the interface for an object that stores layout sections. | 3 | 2 | ||
SectionListTrait | trait | Drupal\layout_builder | core/ |
Provides a trait for maintaining a list of sections. | 3 | |||
SectionStorage | class | Drupal\layout_builder\Annotation | core/ |
Defines a Section Storage type annotation object. | ||||
SectionStorage | class | Drupal\layout_builder\Attribute | core/ |
Defines a SectionStorage attribute. | 4 | |||
SectionStorageBase | abstract class | Drupal\layout_builder\Plugin\SectionStorage | core/ |
Provides a base class for Section Storage types. | 2 | |||
SectionStorageDefinition | class | Drupal\layout_builder\SectionStorage | core/ |
Provides section storage type plugin definition. | 3 | |||
SectionStorageInterface | interface | Drupal\layout_builder | core/ |
Defines an interface for Section Storage type plugins. | 4 | 32 | ||
SectionStorageLocalTaskProviderInterface | interface | Drupal\layout_builder\Plugin\SectionStorage | core/ |
Allows section storage plugins to provide local tasks. | 2 | 2 | ||
SectionStorageManager | class | Drupal\layout_builder\SectionStorage | core/ |
Provides the Section Storage type plugin manager. | 2 | |||
SectionStorageManagerInterface | interface | Drupal\layout_builder\SectionStorage | core/ |
Provides the interface for a plugin manager of section storage types. | 1 | 8 | ||
SecuredRedirectResponse | abstract class | Drupal\Component\HttpFoundation | core/ |
Provides a common base class for safe redirects. | 1 | 3 | ||
SecurityAdvisoriesFetcher | final class | Drupal\system\SecurityAdvisories | core/ |
Defines a service to get security advisories. | 1 | 2 | ||
SecurityAdvisory | class | Composer\Advisory | vendor/ |
1 | 3 | |||
SecurityAdvisory | final class | Drupal\system\SecurityAdvisories | core/ |
Provides a security advisory value object. | ||||
SecurityError | class | Twig\Sandbox | vendor/ |
Exception thrown when a security error occurs at runtime. | 5 | 1 | ||
SecurityFileUploadEventSubscriber | class | Drupal\system\EventSubscriber | core/ |
The final subscriber to 'file.upload.sanitize.name'. | 2 | |||
SecurityNotAllowedFilterError | final class | Twig\Sandbox | vendor/ |
Exception thrown when a not allowed filter is used in a template. | ||||
SecurityNotAllowedFunctionError | final class | Twig\Sandbox | vendor/ |
Exception thrown when a not allowed function is used in a template. | ||||
SecurityNotAllowedMethodError | final class | Twig\Sandbox | vendor/ |
Exception thrown when a not allowed class method is used in a template. | 2 | |||
SecurityNotAllowedPropertyError | final class | Twig\Sandbox | vendor/ |
Exception thrown when a not allowed class property is used in a template. | 2 | |||
SecurityNotAllowedTagError | final class | Twig\Sandbox | vendor/ |
Exception thrown when a not allowed tag is used in a template. | ||||
SecurityPolicy | final class | Twig\Sandbox | vendor/ |
Represents a security policy which need to be enforced when sandbox mode is enabled. | ||||
SecurityPolicyInterface | interface | Twig\Sandbox | vendor/ |
Interface that all security policy classes must implements. | 2 | 2 | ||
See | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for an {see tag in a Docblock. | 1 | |||
SeekableFileContent | abstract class | org\bovigo\vfs\content | vendor/ |
Default implementation for file contents based on simple strings. | 2 | |||
Select | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Select. | ||||
Select | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a drop-down menu or scrolling selection box. | ||||
Select | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Select. | ||||
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. | 3 | 4 | ||
SelectExtender | class | Drupal\Core\Database\Query | core/ |
The base extender class for Select queries. | 3 | 2 | ||
SelectInterface | interface | Drupal\Core\Database\Query | core/ |
Interface definition for a Select Query object. | 2 | 25 | ||
SelectionCriteriaInterface | interface | OpenTelemetry\SDK\Metrics\View | vendor/ |
6 | 6 | |||
SelectionInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Interface definition for Entity Reference Selection plugins. | 1 | 2 | 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. | ||||
SelectionPluginManagerInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Defines an interface for the entity reference selection plugin manager. | 1 | 3 | ||
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. | ||||
Selector | class | Peast\Selector\Node | vendor/ |
Selector class | 1 | |||
Selector | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
1 |