Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TraversableTypedDataInterface | interface | Drupal\Core\TypedData | core/ |
An interface for typed data objects that can be traversed. | 3 | 8 | ||
| TreeConfigTargetForm | class | Drupal\form_test\Form | core/ |
Provides a form for configuring preferences and dynamically updating select list options via AJAX. | 1 | 1 | ||
| TRexEditor | class | Drupal\editor_test\Plugin\Editor | core/ |
Defines a Tyrannosaurus-Rex powered text editor for testing purposes. | ||||
| TriggeringElementProgrammedTest | class | Drupal\KernelTests\Core\Form | core/ |
Tests detection of triggering_element for programmed form submissions. | ||||
| TriggeringElementTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests that FAPI correctly determines the triggering element. | ||||
| TriggerPreviewCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for triggering the views live preview. | 1 | |||
| Truncate | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate. | ||||
| Truncate | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Truncate. | ||||
| Truncate | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted TRUNCATE operation. | 3 | 5 | ||
| Truncate | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Truncate. | ||||
| TrustedCallback | class | Drupal\Core\Security\Attribute | core/ |
Attribute to tell that a method is a trusted callback. | 15 | |||
| TrustedCallbackInterface | interface | Drupal\Core\Security | core/ |
Interface to declare trusted callbacks. | 49 | 50 | ||
| TrustedHostsRequestFactory | class | Drupal\Core\Http | core/ |
Provides a request factory for requests using host verification. | 2 | |||
| TrustedHostsRequestFactoryTest | class | Drupal\Tests\Core\Http | core/ |
Tests the trusted hosts request factory. | ||||
| TrustedHostsTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests output on the status overview page. | ||||
| TrustedHostsTest | class | Drupal\Tests\shortcut\Functional | core/ |
Tests output on the status overview page. | ||||
| TrustedHostsTestController | class | Drupal\trusted_hosts_test\Controller | core/ |
Provides a test controller for testing the trusted hosts setting. | ||||
| TrustedInterface | interface | Drupal\Tests\Core\Security | core/ |
Interface representing classes with trusted callbacks. | 1 | |||
| TrustedMethods | class | Drupal\Tests\Core\Security | core/ |
Test class with implemented trusted callbacks. | ||||
| TrustedObject | class | Drupal\Tests\Core\Security | core/ |
Class with a trusted interface implementation with callback. | ||||
| TrustedRedirectResponse | class | Drupal\Core\Routing | core/ |
Provides a redirect response which contains trusted URLs. | 6 | |||
| TrustedRedirectResponseTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\TrustedRedirectResponse. | ||||
| TurtleLazyBuilder | class | Drupal\Tests\big_pipe\Unit\Render | core/ |
Test class for testing fiber placeholders. | ||||
| TwigAllowed | final class | Drupal\Core\Template\Attribute | core/ |
Allow twig access to methods. | 2 | |||
| TwigAllowListTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests the allowed list of entity properties. | ||||
| TwigAttributesTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests Twig with Attribute objects. | ||||
| TwigDebugMarkupTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests for Twig debug markup. | ||||
| TwigDeprecationsTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests deprecating variables passed to twig templates. | ||||
| TwigEnvironment | class | Drupal\Core\Template | core/ |
A class that defines a Twig environment for Drupal. | 4 | 2 | ||
| TwigEnvironmentTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests Twig environment. | ||||
| TwigEnvironmentTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests the twig environment. | ||||
| TwigEnvironmentTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests Twig environment. | ||||
| TwigExtension | class | Drupal\Core\Template | core/ |
A class providing Drupal Twig extensions. | 1 | 2 | ||
| TwigExtensionPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Adds the twig_extension_hash parameter to the container. | 1 | |||
| TwigExtensionTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests Twig extensions. | ||||
| TwigExtensionTest | class | Drupal\Tests\Core\Template | core/ |
Tests the twig extension. | ||||
| TwigExtensionTestController | class | Drupal\twig_extension_test | core/ |
Controller routines for Twig extension test routes. | ||||
| TwigExtensionTestHooks | class | Drupal\twig_extension_test\Hook | core/ |
Hook implementations for twig_extension_test. | ||||
| TwigExtensionTestString | class | Drupal\Tests\Core\Template | core/ |
A simple string holder for testing Twig extension. | ||||
| TwigFilterTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests Drupal's Twig filters. | ||||
| TwigIncludeTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests including files in Twig templates. | ||||
| TwigLoaderTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests adding Twig loaders. | ||||
| TwigMarkupInterfaceTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests Twig with MarkupInterface objects. | ||||
| TwigNamespaceTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests Twig namespaces. | ||||
| TwigNodeCheckDeprecations | class | Drupal\Core\Template | core/ |
A node that checks deprecated variable usage. | ||||
| TwigNodeTrans | class | Drupal\Core\Template | core/ |
A class that defines the Twig 'trans' tag for Drupal. | 2 | |||
| TwigNodeVisitor | class | Drupal\Core\Template | core/ |
Provides a TwigNodeVisitor to change the generated parse-tree. | ||||
| TwigNodeVisitorCheckDeprecations | class | Drupal\Core\Template | core/ |
Provides a Node Visitor to trigger errors if deprecated variables are used. | ||||
| TwigPhpStorageCache | class | Drupal\Core\Template | core/ |
Provides an alternate cache storage for Twig using PhpStorage. | 1 | |||
| TwigRawTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests Twig 'raw' filter. |
Pagination
- Previous page
- Page 205
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.