Classes, traits, and interfaces - 9.5.x - 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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| XssTest | class | Drupal\Tests\Component\Utility | core/ |
XSS Filtering tests. | ||||
| XssTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the Xss vulnerability. | ||||
| XssUnitTest | class | Drupal\KernelTests\Core\Common | core/ |
Tests XSS filtering. | ||||
| Yaml | class | Drupal\Component\Serialization | core/ |
Provides a YAML serialization implementation. | 2 | 15 | 2 | |
| Yaml | class | Drupal\Core\Serialization | core/ |
Provides a YAML serialization implementation. | 38 | |||
| YamlDirectoryDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Allows multiple YAML files per directory to define plugin definitions. | 2 | |||
| YamlDirectoryDiscovery | class | Drupal\Component\Discovery | core/ |
Discovers multiple YAML files in a set of directories. | 3 | |||
| YamlDirectoryDiscoveryTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
@coversDefaultClass \Drupal\Core\Plugin\Discovery\YamlDirectoryDiscovery[[api-linebreak]] | ||||
| YamlDirectoryDiscoveryTest | class | Drupal\Tests\Component\Discovery | core/ |
YamlDirectoryDiscoveryTest component unit tests. | ||||
| YamlDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Allows YAML files to define plugin definitions. | 2 | 9 | ||
| YamlDiscovery | class | Drupal\Component\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 1 | 4 | ||
| YamlDiscovery | class | Drupal\Core\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 6 | |||
| YamlDiscoveryDecorator | class | Drupal\Core\Plugin\Discovery | core/ |
Enables YAML discovery for plugin definitions. | 4 | |||
| YamlDiscoveryDecoratorTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
YamlDiscoveryDecorator unit tests. | ||||
| YamlDiscoveryTest | class | Drupal\Tests\Core\Discovery | core/ |
YamlDiscovery component unit tests. | ||||
| YamlDiscoveryTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
@coversDefaultClass \Drupal\Core\Plugin\Discovery\YamlDiscovery[[api-linebreak]] @group Plugin | ||||
| YamlDiscoveryTest | class | Drupal\Tests\Component\Discovery | core/ |
YamlDiscovery component unit tests. | ||||
| YamlFileLoader | class | Drupal\Core\DependencyInjection | core/ |
YamlFileLoader loads YAML files service definitions. | 2 | |||
| YamlFileLoaderTest | class | Drupal\Tests\Core\DependencyInjection | core/ |
@coversDefaultClass \Drupal\Core\DependencyInjection\YamlFileLoader[[api-linebreak]] @group DependencyInjection | ||||
| YamlParserProxy | class | Drupal\Tests\Core\Serialization | core/ |
|||||
| YamlParserProxy | class | Drupal\Tests\Component\Serialization | core/ |
|||||
| YamlPecl | class | Drupal\Component\Serialization | core/ |
Provides default serialization for YAML using the PECL extension. | 2 | |||
| YamlPeclTest | class | Drupal\Tests\Component\Serialization | core/ |
Tests the YamlPecl serialization implementation. | ||||
| YamlStub | class | Drupal\Tests\Component\Serialization | core/ |
|||||
| YamlSymfony | class | Drupal\Component\Serialization | core/ |
Default serialization for YAML using the Symfony component. | 2 | |||
| YamlSymfonyTest | class | Drupal\Tests\Component\Serialization | core/ |
Tests the YamlSymfony serialization implementation. | ||||
| YamlTest | class | Drupal\Tests\Component\Serialization | core/ |
@coversDefaultClass \Drupal\Component\Serialization\Yaml[[api-linebreak]] @group Serialization | ||||
| YamlTest | class | Drupal\Tests\Core\Serialization | core/ |
@coversDefaultClass \Drupal\Core\Serialization\Yaml[[api-linebreak]] @group Serialization | ||||
| YamlTestBase | abstract class | Drupal\Tests\Component\Serialization | core/ |
Provides standard data to validate different YAML implementations. | 2 | |||
| YearDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a year. | ||||
| YearDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a year (CCYY) | ||||
| YearMonthDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a year plus month (CCYYMM) | ||||
| YearMonthDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a year plus month (CCYYMM). | ||||
| ZfExtensionManagerSfContainer | class | Drupal\aggregator | core/ |
Defines a bridge between the Laminas service manager to Symfony container. | 1 | 2 | ||
| ZfExtensionManagerSfContainer | in drupal:9.4.0 and is removed from drupal:10.0.0. The class has moved to \Drupal\aggregator\ZfExtensionManagerSfContainer. |
class | Drupal\Component\Bridge | core/ |
Defines a bridge between the Laminas service manager to Symfony container. | 1 | 3 | |
| ZfExtensionManagerSfContainerTest | class | Drupal\Tests\Component\Bridge | core/ |
@coversDefaultClass \Drupal\Component\Bridge\ZfExtensionManagerSfContainer[[api-linebreak]] @group Bridge @group legacy | ||||
| ZfExtensionManagerSfContainerTest | class | Drupal\Tests\aggregator\Unit | core/ |
@coversDefaultClass \Drupal\aggregator\ZfExtensionManagerSfContainer[[api-linebreak]] @group aggregator @group legacy | ||||
| Zip | class | Drupal\system\Plugin\Archiver | core/ |
Defines an archiver implementation for .zip files. | ||||
| Zip | class | Drupal\Core\Archiver | core/ |
Defines an archiver implementation for .zip files. | 1 | 1 |
Pagination
- Previous page
- Page 191
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.