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 |
---|---|---|---|---|---|---|---|---|
XorBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
XPathExpr | class | Symfony\Component\CssSelector\XPath | vendor/ |
XPath expression translator interface. | 6 | |||
XPathLookupError | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\XPathLookupError class | ||||
Xss | class | Drupal\Component\Utility | core/ |
Provides helper to filter for cross-site scripting. | 1 | 39 | ||
XzDownloader | class | Composer\Downloader | vendor/ |
Xz archive downloader. | ||||
Yaml | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Kev <https://github.com/symfonyaml> | ||||
Yaml | class | Drupal\Component\Serialization | core/ |
Provides a YAML serialization implementation using symfony/yaml. | 6 | |||
Yaml | class | Symfony\Component\Yaml | vendor/ |
Yaml offers convenience methods to load and dump YAML. | 18 | |||
YamlDirectoryDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Allows multiple YAML files per directory to define plugin definitions. | 1 | |||
YamlDirectoryDiscovery | class | Drupal\Component\Discovery | core/ |
Discovers multiple YAML files in a set of directories. | 1 | 4 | ||
YamlDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Allows YAML files to define plugin definitions. | 3 | 9 | ||
YamlDiscovery | class | Drupal\Core\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 4 | |||
YamlDiscovery | class | Drupal\Component\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 1 | 1 | ||
YamlDiscoveryDecorator | class | Drupal\Core\Plugin\Discovery | core/ |
Enables YAML discovery for plugin definitions. | 3 | |||
YamlDumper | class | Symfony\Component\DependencyInjection\Dumper | vendor/ |
YamlDumper dumps a service container as a YAML string. | ||||
YamlEncoder | class | Symfony\Component\Serializer\Encoder | vendor/ |
Encodes YAML data. | 1 | |||
YamlEncoderContextBuilder | final class | Symfony\Component\Serializer\Context\Encoder | vendor/ |
A helper providing autocompletion for available YamlEncoder options. | ||||
YamlFileLoader | class | Drupal\Core\DependencyInjection | core/ |
YamlFileLoader loads YAML files service definitions. | 1 | |||
YamlFileLoader | class | Symfony\Component\Routing\Loader | vendor/ |
YamlFileLoader loads Yaml routing files. | ||||
YamlFileLoader | class | Symfony\Component\Serializer\Mapping\Loader | vendor/ |
YAML File Loader. | ||||
YamlFileLoader | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata from a YAML file. | 1 | |||
YamlFileLoader | class | Symfony\Component\DependencyInjection\Loader | vendor/ |
YamlFileLoader loads YAML files service definitions. | 4 | |||
YamlFilesLoader | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata from a list of YAML files. | ||||
YamlPecl | class | Drupal\Component\Serialization | core/ |
Provides default serialization for YAML using the PECL extension. | ||||
YamlValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Kev <https://github.com/symfonyaml> | ||||
YawikInstaller | class | Composer\Installers | vendor/ |
|||||
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\datetime\Plugin\views\argument | core/ |
Argument handler for a year plus month (CCYYMM). | ||||
YearMonthDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a year plus month (CCYYMM) | ||||
YieldExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a yield statement. | ||||
YieldFrom | class | PhpParser\Node\Expr | vendor/ |
|||||
YieldNotReadyExtension | final class | Twig\Extension | vendor/ |
@internal to be removed in Twig 4 | 1 | |||
YieldNotReadyNodeVisitor | final class | Twig\NodeVisitor | vendor/ |
@internal to be removed in Twig 4 | 1 | |||
YieldReady | final class | Twig\Attribute | vendor/ |
Marks nodes that are ready for using "yield" instead of "echo" or "print()" for rendering. | 32 | |||
Yield_ | class | PhpParser\Node\Expr | vendor/ |
|||||
YodaHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 2 | |||
ZendInstaller | class | Composer\Installers | vendor/ |
|||||
ZendObserverFiber | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
ZeroComparisonConstraintTrait | trait | Symfony\Component\Validator\Constraints | vendor/ |
@internal | ||||
ZikulaInstaller | class | Composer\Installers | vendor/ |
|||||
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 | ||
Zip | class | Composer\Util | vendor/ |
@author Andreas Schempp <andreas.schempp@terminal42.ch> | 1 | |||
ZipArchiver | class | Composer\Package\Archiver | vendor/ |
@author Jan Prieser <jan@prieser.net> | ||||
ZipDownloader | class | Composer\Downloader | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | ||||
ZookeeperStore | class | Symfony\Component\Lock\Store | vendor/ |
ZookeeperStore is a PersistingStoreInterface implementation using Zookeeper as store engine. | ||||
ZshCompletionOutput | class | Symfony\Component\Console\Completion\Output | vendor/ |
@author Jitendra A <adhocore@gmail.com> | 1 |