Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 2 | 2 | ||
PathProcessorFrontTest | class | Drupal\Tests\Core\PathProcessor | core/ |
Test front page path processing. | ||||
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. | 2 | |||
PathProcessorManager | class | Drupal\Core\PathProcessor | core/ |
Path processor manager. | 3 | 2 | ||
PathProcessorTest | class | Drupal\Tests\Core\PathProcessor | core/ |
Tests processing of the inbound path. | ||||
PathProcessorTest | class | Drupal\url_alter_test | core/ |
Path processor for url_alter_test. | 2 | |||
PathProcessorTest | class | Drupal\forum_url_alter_test | core/ |
Path processor for url_alter_test. | 2 | |||
PathRootsSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Provides all available first bits of all route paths. | 1 | 2 | ||
PathRootsSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\PathRootsSubscriber[[api-linebreak]] @group EventSubscriber | ||||
PathSetTranslated | class | Drupal\path\Plugin\migrate\process | core/ |
A process plugin to update the path of a translated node. | 1 | |||
PathSetTranslatedTest | class | Drupal\Tests\path\Unit\migrate\process | core/ |
Tests the path_set_translated process plugin. | ||||
PathTaxonomyTermTest | class | Drupal\Tests\path\Functional | core/ |
Tests URL aliases for taxonomy terms. | ||||
PathTestBase | abstract class | Drupal\Tests\path\Functional | core/ |
Provides a base class for testing the Path module. | 8 | |||
PathValidator | class | Drupal\Core\Path | core/ |
Provides a default path validator and access checker. | 1 | 2 | ||
PathValidatorInterface | interface | Drupal\Core\Path | core/ |
Provides an interface for URL path validators. | 1 | 10 | ||
PathValidatorTest | class | Drupal\Tests\Core\Path | core/ |
@coversDefaultClass \Drupal\Core\Path\PathValidator[[api-linebreak]] @group Routing | ||||
PathValidatorTest | class | Drupal\KernelTests\Core\Path | core/ |
Tests the path validator. | ||||
PathWidget | class | Drupal\path\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'path' widget. | ||||
PathWithNodeAccessGrantsTest | class | Drupal\Tests\path\Functional | core/ |
Confirm that paths work with node access grants implementations. | ||||
PathWorkspacesTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests path aliases with workspaces. | ||||
PDOConnection | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite-specific implementation of a PDO connection. | ||||
Pecl | class | Drupal\Component\Uuid | core/ |
Generates a UUID using the PECL extension. | 1 | |||
PendingRevisionTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Kernel tests for taxonomy pending revisions. | ||||
Percentage | class | Drupal\Core\Batch | core/ |
Helper methods for the batch system. | 2 | |||
PercentagesTest | class | Drupal\Tests\Core\Batch | core/ |
@coversDefaultClass \Drupal\Core\Batch\Percentage[[api-linebreak]] @group Batch | ||||
PerComponentEntityDisplay | class | Drupal\migrate\Plugin\migrate\destination | core/ |
This class imports one component of an entity display. | ||||
PerComponentEntityDisplayTest | class | Drupal\Tests\migrate\Unit\destination | core/ |
Tests the entity display destination plugin. | ||||
PerComponentEntityFormDisplay | class | Drupal\migrate\Plugin\migrate\destination | core/ |
This class imports one component of an entity form display. | 1 | 1 | ||
PerComponentEntityFormDisplayTest | class | Drupal\Tests\migrate\Unit\destination | core/ |
Tests the entity display destination plugin. | ||||
PerformanceController | class | Drupal\system\Controller | core/ |
Controller for performance admin. | ||||
PerformanceData | class | Drupal\Tests | core/ |
Value object to store performance information collected from requests. | 2 | |||
PerformanceDataCollector | class | Drupal\performance_test | core/ |
3 | ||||
PerformanceForm | class | Drupal\system\Form | core/ |
Configure performance settings for this site. | 1 | |||
PerformanceTestBase | class | Drupal\FunctionalJavascriptTests | core/ |
Collects performance metrics. | 5 | 5 | ||
PerformanceTestRecorder | class | Drupal\Core\Test | core/ |
Records the number of times specific events occur. | 3 | |||
PerformanceTestTrait | trait | Drupal\Tests | core/ |
Provides various methods to aid in collecting performance data during tests. | 1 | |||
Permission | class | Drupal\user\Plugin\views\access | core/ |
Access plugin that provides permission-based access control. | 1 | |||
PermissionAccessCheck | class | Drupal\user\Access | core/ |
Permission access check. | 1 | 2 | ||
PermissionAccessCheckTest | class | Drupal\Tests\user\Unit | core/ |
@coversDefaultClass \Drupal\user\Access\PermissionAccessCheck[[api-linebreak]] @group Routing @group Access | ||||
PermissionChecker | class | Drupal\Core\Session | core/ |
Checks permissions for an account. | 1 | 2 | ||
PermissionCheckerInterface | interface | Drupal\Core\Session | core/ |
Defines a permission checker interface. | 1 | |||
PermissionCheckerTest | class | Drupal\Tests\Core\Session | core/ |
@coversDefaultClass \Drupal\Core\Session\PermissionChecker[[api-linebreak]] @group Session | ||||
PermissionFilterTest | class | Drupal\Tests\user\FunctionalJavascript | core/ |
Tests the JavaScript functionality of the permission filter. | ||||
PermissionHandler | class | Drupal\user | core/ |
Provides the available permissions based on yml files. | 1 | 2 | ||
PermissionHandlerInterface | interface | Drupal\user | core/ |
Defines an interface to list available permissions. | 1 | 8 | ||
PermissionHandlerTest | class | Drupal\Tests\user\Unit | core/ |
Tests the permission handler. | ||||
Permissions | class | Drupal\user\Plugin\views\field | core/ |
Field handler to provide a list of permissions. | 1 | |||
Permissions | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for user roles. |
Pagination
- Previous page
- Page 136
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.