Classes, traits, and interfaces in Drupal 8
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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
YamlSymfony | class |
Drupal\ |
core/ |
Default serialization for YAML using the Symfony component. | 2 | ||
YamlSymfonyTest | class |
Drupal\ |
core/ |
Tests the YamlSymfony serialization implementation. | |||
YamlTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Serialization\Yaml @group Serialization | |||
YamlTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Serialization\Yaml @group Serialization | |||
YamlTestBase | abstract class |
Drupal\ |
core/ |
Provides standard data to validate different YAML implementations. | 2 | ||
YearDate | class |
Drupal\ |
core/ |
Argument handler for a year (CCYY) | |||
YearDate | class |
Drupal\ |
core/ |
Argument handler for a year. | |||
YearMonthDate | class |
Drupal\ |
core/ |
Argument handler for a year plus month (CCYYMM). | |||
YearMonthDate | class |
Drupal\ |
core/ |
Argument handler for a year plus month (CCYYMM) | |||
ZfExtensionManagerSfContainer | class |
Drupal\ |
core/ |
Defines a bridge between the Laminas service manager to Symfony container. | 1 | 3 | |
ZfExtensionManagerSfContainerTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Bridge\ZfExtensionManagerSfContainer @group Bridge | |||
Zip | class |
Drupal\ |
core/ |
Defines a archiver implementation for .zip files. | 1 | 1 | |
Zip | class |
Drupal\ |
core/ |
Defines an archiver implementation for .zip files. |