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 |
---|---|---|---|---|---|---|---|---|
PathAliasConstraint | class | Drupal\path\Plugin\Validation\Constraint | core/ |
Validation constraint for changing path aliases in pending revisions. | ||||
PathAliasConstraintValidator | class | Drupal\path\Plugin\Validation\Constraint | core/ |
Constraint validator for changing path aliases in pending revisions. | ||||
PathAliasForm | class | Drupal\path | core/ |
Form handler for the path alias edit forms. | 1 | |||
PathAliasInterface | interface | Drupal\path_alias | core/ |
Provides an interface defining a path_alias entity. | 1 | 2 | ||
PathAliasListBuilder | class | Drupal\path | core/ |
Defines a class to build a listing of path_alias entities. | 1 | |||
PathAliasStorage | class | Drupal\path_alias | core/ |
Defines the storage handler class for path_alias entities. | 1 | |||
PathAliasStorageSchema | class | Drupal\path_alias | core/ |
Defines the path_alias schema handler. | 1 | |||
PathAliasSubscriber | class | Drupal\path_alias\EventSubscriber | core/ |
Provides a path subscriber that converts path aliases. | 2 | |||
PathBasedBreadcrumbBuilder | class | Drupal\system | core/ |
Defines a class to build path-based breadcrumbs. | 2 | |||
PathCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the PathCacheContext service, for "per URL path" caching. | ||||
PathChangedHelper | class | Drupal\Core\Routing | core/ |
Provides helper functions for handling path changes. | ||||
PathDownloader | class | Composer\Downloader | vendor/ |
Download a package from a local path. | ||||
PathElement | class | Drupal\Core\Render\Element | core/ |
Provides a matched path render element. | 1 | |||
PathExistsButIsNotDirectoryException | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
1 | ||||
PathExtractor | class | Drupal\Core\Theme\Plugin\IconExtractor | core/ |
Plugin implementation of the icon_extractor. | ||||
PathFactory | final class | PhpTuf\ComposerStager\Internal\Path\Factory | vendor/ |
@package Path | 2 | |||
PathFactoryInterface | interface | PhpTuf\ComposerStager\API\Path\Factory | vendor/ |
Creates path value objects. | 1 | 13 | ||
PathFieldItemList | class | Drupal\path\Plugin\Field\FieldType | core/ |
Represents a configurable entity path field. | ||||
PathFilterForm | class | Drupal\path\Form | core/ |
Provides the path admin overview filter form. | 1 | |||
PathFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
PathFilterIterator filters files by path patterns (e.g. some/special/dir). | ||||
PathHeader | final class | Symfony\Component\Mime\Header | vendor/ |
A Path Header, such a Return-Path (one address). | ||||
PathHelper | final class | PhpTuf\ComposerStager\Internal\Path\Service | vendor/ |
@package Path | 2 | |||
PathHelperInterface | interface | PhpTuf\ComposerStager\Internal\Path\Service | vendor/ |
@package Path | 1 | 7 | ||
PathHooks | class | Drupal\path\Hook | core/ |
Hook implementations for path. | ||||
PathInterface | interface | PhpTuf\ComposerStager\API\Path\Value | vendor/ |
Handles a filesystem path string. | 1 | 47 | ||
PathItem | class | Drupal\path\Plugin\Field\FieldType | core/ |
Defines the 'path' entity field type. | ||||
PathList | final class | PhpTuf\ComposerStager\Internal\Path\Value | vendor/ |
@package Path | 1 | |||
PathListFactory | final class | PhpTuf\ComposerStager\Internal\Path\Factory | vendor/ |
@package Path | 2 | |||
PathListFactoryInterface | interface | PhpTuf\ComposerStager\API\Path\Factory | vendor/ |
Creates path list value objects. | 1 | 7 | ||
PathListInterface | interface | PhpTuf\ComposerStager\API\Path\Value | vendor/ |
Defines a list of path strings. | 3 | 34 | ||
PathLocator | class | Drupal\package_manager | core/ |
Computes file system paths that are needed to stage code changes. | 23 | |||
PathMatcher | class | Drupal\Core\Path | core/ |
Provides a path matcher. | ||||
PathMatcherInterface | interface | Drupal\Core\Path | core/ |
Provides an interface for URL path matchers. | 1 | 5 | ||
PathParentCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines a cache context service for path parents. | ||||
PathPluginBase | abstract class | Drupal\views\Plugin\views\display | core/ |
The base display plugin for path/callbacks. This is used for pages and feeds. | 3 | 2 | ||
PathProcessorDecode | class | Drupal\Core\PathProcessor | core/ |
Processes the inbound path by decoding the URL. | ||||
PathProcessorFiles | class | Drupal\system\PathProcessor | core/ |
Defines a path processor to rewrite file URLs. | 2 | |||
PathProcessorFront | class | Drupal\Core\PathProcessor | core/ |
Processes the inbound path by resolving it to the front page if empty. | ||||
PathProcessorImageStyles | class | Drupal\image\PathProcessor | core/ |
Defines a path processor to rewrite image styles URLs. | 2 | |||
PathProcessorLanguage | class | Drupal\language\HttpKernel | core/ |
Processes the inbound path using path alias lookups. | 1 | |||
PathProcessorManager | class | Drupal\Core\PathProcessor | core/ |
Path processor manager. | 1 | |||
PathRepository | class | Composer\Repository | vendor/ |
This repository allows installing local packages that are not necessarily under their own VCS. | ||||
PathRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the Request URL path info matches a regular expression. | ||||
PathRootsSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Provides all available first bits of all route paths. | ||||
PathSetTranslated | class | Drupal\path\Plugin\migrate\process | core/ |
A process plugin to update the path of a translated node. | ||||
PathValidator | class | Drupal\Core\Path | core/ |
Provides a default path validator and access checker. | ||||
PathValidatorInterface | interface | Drupal\Core\Path | core/ |
Provides an interface for URL path validators. | 1 | 7 | ||
PathWidget | class | Drupal\path\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'path' widget. | ||||
Pattern | class | Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse\Schedule | vendor/ |
A light-weight pattern that can match 1 or more metrics, for which this schedule will apply. The string is used to match against metric names. It should not exceed 100k characters. | ||||
Pattern | interface | Peast\Syntax\Node | vendor/ |
Interface that every pattern node must implement. | 6 | 1 |