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 |
---|---|---|---|---|---|---|---|---|
False_ | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the PseudoType 'False', which is a Boolean type. | 1 | |||
Fast404ExceptionHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
High-performance 404 exception subscriber. | ||||
FatalError | class | Symfony\Component\ErrorHandler\Error | vendor/ |
1 | 4 | |||
Features | class | Peast\Syntax\ES2018 | vendor/ |
ES2018 features class | 1 | |||
Features | class | Peast\Syntax\ES2019 | vendor/ |
ES2019 features class | 1 | |||
Features | class | Peast\Syntax\ES2023 | vendor/ |
ES2023 features class | 1 | |||
Features | class | Peast\Syntax | vendor/ |
Parser features class | 1 | |||
Features | class | Peast\Syntax\ES2020 | vendor/ |
ES2020 features class | 1 | |||
Features | class | Peast\Syntax\ES2016 | vendor/ |
ES2016 features class | 1 | |||
Features | class | Peast\Syntax\ES2022 | vendor/ |
ES2022 features class | 1 | |||
Features | class | Peast\Syntax\ES2015 | vendor/ |
ES2015 features class | 1 | |||
Features | class | Peast\Syntax\ES2024 | vendor/ |
ES2024 features class | ||||
Features | class | Peast\Syntax\ES2021 | vendor/ |
ES2021 features class | 1 | |||
Features | class | Peast\Syntax\ES2017 | vendor/ |
ES2017 features class | 1 | |||
FeatureSet | class | Ramsey\Uuid | vendor/ |
FeatureSet detects and exposes available features in the current environment | ||||
Feed | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles a feed, such as RSS or atom. | ||||
FetchingClassConstOfDeprecatedClassRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<ClassConstFetch> | ||||
FetchingDeprecatedConstRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<ConstFetch> | ||||
FetchModeTrait | trait | Drupal\Core\Database | core/ |
Provide helper methods for statement fetching. | ||||
FFICaster | final class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts FFI extension classes to array representation. | ||||
FiberBoundContextStorage | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
FiberBoundContextStorageExecutionAwareBC | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
FiberCaster | final class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts Fiber related classes to array representation. | ||||
FiberLocal | final class | Revolt\EventLoop | vendor/ |
Fiber local storage. | 1 | |||
Fid | class | Drupal\file\Plugin\views\argument | core/ |
Argument handler to accept multiple file ids. | ||||
Field | class | Google\Protobuf | vendor/ |
A single field of a message type. | ||||
Field | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field source from database. | 1 | |||
Field | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field source from database. | 1 | |||
FieldableEntity | abstract class | Drupal\migrate_drupal\Plugin\migrate\source\d7 | core/ |
Base class for D7 source plugins which need to collect field values. | 8 | 8 | ||
FieldableEntityInterface | interface | Drupal\Core\Entity | core/ |
Interface for entities having fields. | 1 | 64 | ||
FieldableEntityNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
A trait for providing fieldable entity normalization/denormalization methods. | ||||
FieldableEntityStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports entity types with field definitions. | 1 | 3 | ||
FieldAPIHandlerTrait | trait | Drupal\views | core/ |
A trait containing helper methods for field definitions. | 8 | |||
FieldBlock | class | Drupal\layout_builder\Plugin\Block | core/ |
Provides a block that renders a field from an entity. | ||||
FieldBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides entity field block definitions for every field. | 1 | |||
FieldBundle | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the bundle for a field. | ||||
FieldConfig | class | Drupal\field\Entity | core/ |
Defines the Field entity. | 8 | |||
FieldConfigAccessControlHandler | class | Drupal\field | core/ |
Defines the access control handler for the field config entity type. | 1 | |||
FieldConfigAddController | final class | Drupal\field_ui\Controller | core/ |
Controller for building the field instance form. | 1 | |||
FieldConfigBase | abstract class | Drupal\Core\Field | core/ |
Base class for configurable field definitions. | 2 | 2 | ||
FieldConfigDeleteForm | class | Drupal\field_ui\Form | core/ |
Provides a form for removing a field from a bundle. | ||||
FieldConfigEditForm | class | Drupal\field_ui\Form | core/ |
Provides a form for the field settings form. | 1 | |||
FieldConfigInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for configurable field definitions. | 1 | 1 | ||
FieldConfigInterface | interface | Drupal\field | core/ |
Provides an interface defining a field entity. | 1 | 14 | ||
FieldConfigListBuilder | class | Drupal\field_ui | core/ |
Provides lists of field config entities. | ||||
FieldConfigListController | class | Drupal\field_ui\Controller | core/ |
Defines a controller to list field instances. | ||||
FieldConfigStorage | class | Drupal\field | core/ |
Storage handler for field config. | 1 | |||
FieldConfigStorageBase | abstract class | Drupal\Core\Field | core/ |
Base storage class for field config entities. | 2 | 1 | ||
FieldDefinition | class | Drupal\Core\Field | core/ |
A class for defining entity field definitions. | 2 | |||
FieldDefinitionInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for entity field definitions. | 4 | 99 |