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 |
|---|---|---|---|---|---|---|---|---|
| TourHelpSection | class | Drupal\tour\Plugin\HelpSection | core/ |
Provides the tours list section for the help page. | ||||
| TourInterface | interface | Drupal\tour | core/ |
Provides an interface defining a tour entity. | 1 | 1 | ||
| TourJavascriptTest | class | Drupal\Tests\tour\FunctionalJavascript | core/ |
General Tour tests that require JavaScript. | ||||
| TourJsonAnonTest | class | Drupal\Tests\tour\Functional\Rest | core/ |
@group rest @group legacy | ||||
| TourJsonBasicAuthTest | class | Drupal\Tests\tour\Functional\Rest | core/ |
@group rest @group legacy | ||||
| TourJsonCookieTest | class | Drupal\Tests\tour\Functional\Rest | core/ |
@group rest @group legacy | ||||
| TourPluginTest | class | Drupal\Tests\tour\Kernel | core/ |
Tests the functionality of tour plugins. | ||||
| TourResourceTestBase | abstract class | Drupal\Tests\tour\Functional\Rest | core/ |
6 | ||||
| TourTest | class | Drupal\Tests\tour\Unit\Entity | core/ |
@coversDefaultClass \Drupal\tour\Entity\Tour[[api-linebreak]] | ||||
| TourTest | class | Drupal\Tests\tour\Functional | core/ |
Tests the functionality of tour tips. | ||||
| TourTest | class | Drupal\Tests\tour\Functional\Jsonapi | core/ |
JSON:API integration test for the "Tour" config entity type. | ||||
| TourTestBase | abstract class | Drupal\Tests\tour\Functional | core/ |
Base class for testing Tour functionality. | 5 | 4 | ||
| TourTestBasic | abstract class | Drupal\Tests\tour\Functional | core/ |
Simple tour tips test base. | 1 | |||
| TourTestController | class | Drupal\tour_test\Controller | core/ |
Controller routines for tour_test routes. | ||||
| TourTipLegacyTest | class | Drupal\Tests\tour\Kernel | core/ |
@coversDefaultClass \Drupal\tour\TourTipPluginInterface[[api-linebreak]] @group tour @group legacy | ||||
| TourTipPluginInterface | in drupal:10.1.0 and is removed from drupal:11.0.0. Implements TipPluginInterface instead. |
interface | Drupal\tour | core/ |
Defines an interface for tour items. | 1 | ||
| TourValidationTest | class | Drupal\Tests\tour\Kernel | core/ |
Tests validation of tour entities. | ||||
| TourViewBuilder | class | Drupal\tour | core/ |
Provides a Tour view builder. | ||||
| TourXmlAnonTest | class | Drupal\Tests\tour\Functional\Rest | core/ |
@group rest @group legacy | ||||
| TourXmlBasicAuthTest | class | Drupal\Tests\tour\Functional\Rest | core/ |
@group rest @group legacy | ||||
| TourXmlCookieTest | class | Drupal\Tests\tour\Functional\Rest | core/ |
@group rest @group legacy | ||||
| TrackChangesTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests migration track changes property. | ||||
| TrackChangesTest | class | Drupal\migrate_track_changes_test\Plugin\migrate\source | core/ |
Source plugin for migration track changes tests. | ||||
| TrackerController | class | Drupal\tracker\Controller | core/ |
Controller for tracker pages. | ||||
| TrackerNode | class | Drupal\tracker\Plugin\migrate\source\d7 | core/ |
Drupal 7 tracker node source from database. | ||||
| TrackerNodeAccessTest | class | Drupal\Tests\tracker\Functional | core/ |
Tests for private node access on /tracker. | ||||
| TrackerNodeTest | class | Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 tracker node source plugin. | ||||
| TrackerRecentContentLinkTest | class | Drupal\Tests\tracker\Functional | core/ |
Tests recent content link. | ||||
| TrackerTest | class | Drupal\Tests\tracker\Functional | core/ |
Create and delete nodes and check for their display in the tracker listings. | ||||
| TrackerUser | class | Drupal\tracker\Plugin\migrate\source\d7 | core/ |
Drupal 7 tracker user source from database. | ||||
| TrackerUserTest | class | Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 tracker user source plugin. | ||||
| TrackerUserUidTest | class | Drupal\Tests\tracker\Kernel\Views | core/ |
Tests the tracker user uid handlers. | ||||
| TraitAccessTest | class | Drupal\Tests\system\Unit | core/ |
Test whether traits are autoloaded during PHPUnit discovery time. | ||||
| Transaction | class | Drupal\Core\Database | core/ |
A wrapper class for creating and managing database transactions. | 1 | 6 | ||
| Transaction | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Transaction. | ||||
| TransactionCommitFailedException | class | Drupal\Core\Database | core/ |
Exception thrown when a commit() function fails. | 1 | |||
| TransactionException | class | Drupal\Core\Database | core/ |
Exception thrown by an error in a database transaction. | 5 | |||
| TransactionExplicitCommitNotAllowedException | class | Drupal\Core\Database | core/ |
Exception to deny attempts to explicitly manage transactions. | 1 | |||
| TransactionManager | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of TransactionManagerInterface. | ||||
| TransactionManager | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySql implementation of TransactionManagerInterface. | ||||
| TransactionManager | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSql implementation of TransactionManagerInterface. | ||||
| TransactionManagerBase | abstract class | Drupal\Core\Database\Transaction | core/ |
The database transaction manager base class. | 3 | 4 | ||
| TransactionManagerInterface | interface | Drupal\Core\Database\Transaction | core/ |
Interface for the database transaction manager classes. | 1 | 4 | ||
| TransactionNameNonUniqueException | class | Drupal\Core\Database | core/ |
Exception thrown when a savepoint or transaction name occurs twice. | 2 | |||
| TransactionNoActiveException | class | Drupal\Core\Database | core/ |
Exception for when popTransaction() is called with no active transaction. | ||||
| TransactionOutOfOrderException | class | Drupal\Core\Database | core/ |
Exception thrown when a rollBack() resulted in other active transactions being rolled-back. | 2 | |||
| TransactionTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests transaction for the PostgreSQL driver. | ||||
| TransactionTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests transaction for the SQLite driver. | ||||
| TransactionTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests transaction for the MySQL driver. | ||||
| TransformedConfigExportImportUITest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for importing/exporting transformed configuration. |
Pagination
- Previous page
- Page 181
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.