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 |
---|---|---|---|---|---|---|---|---|
FullyValidatableConstraint | final class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Constraint for fully validatable config schema type. | 4 | |||
FullyValidatableConstraintValidator | final class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
FullyValidatable constraint. | ||||
FunctionalJavascriptTestSuite | in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement and test discovery will be handled differently in PHPUnit 10. |
class | Drupal\Tests\TestSuites | core/ |
Discovers tests for the functional-javascript test suite. | |||
FunctionalTestDebugHtmlOutputHelperTest | class | Drupal\FunctionalTests\Test | core/ |
Helper test for FunctionalTestDebugHtmlOutputTest. | ||||
FunctionalTestDebugHtmlOutputTest | class | Drupal\FunctionalTests\Test | core/ |
Test to ensure that functional tests produce debug HTML output when required. | ||||
FunctionalTestSetupTrait | trait | Drupal\Core\Test | core/ |
Defines a trait for shared functional test setup functionality. | 2 | |||
FunctionalTestSuite | in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement and test discovery will be handled differently in PHPUnit 10. |
class | Drupal\Tests\TestSuites | core/ |
Discovers tests for the functional test suite. | |||
FunctionsTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests for common theme functions. | ||||
FundamentalCompatibilityConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
The fundamental compatibility constraint. | ||||
FundamentalCompatibilityConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Validates fundamental compatibility of CKEditor 5 with the given text format. | ||||
GarbageCollectionTest | class | Drupal\KernelTests\Core\KeyValueStore | core/ |
Tests garbage collection for the expirable key-value database storage. | ||||
GDImageToolkitOperationBase | abstract class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
7 | ||||
GDToolkit | class | Drupal\system\Plugin\ImageToolkit | core/ |
Defines the GD2 toolkit for image manipulation within Drupal. | ||||
GenerateAutoloadReferenceFile | final class | Drupal\Composer\Plugin\Scaffold | composer/ |
Generates an 'autoload.php' that includes the autoloader created by Composer. | ||||
GeneratedButton | class | Drupal\Core | core/ |
This class holds a <button> generated from the <button> route. | 2 | |||
GeneratedLink | class | Drupal\Core | core/ |
Used to return generated links, along with associated cacheability metadata. | 2 | 4 | ||
GeneratedNoLink | class | Drupal\Core | core/ |
This class holds a <span> generated from the <nolink> route. | 2 | |||
GeneratedUrl | class | Drupal\Core | core/ |
Used to return generated URLs, along with associated bubbleable metadata. | 14 | |||
GeneratePermutationsTrait | trait | Drupal\Tests\Traits\Core | core/ |
Adds ability to convert a list of parameters into a stack of permutations. | 3 | |||
GenerateProxyClassApplication | class | Drupal\Core\Command | core/ |
Provides a console command to generate proxy classes. | 1 | |||
GenerateProxyClassCommand | class | Drupal\Core\Command | core/ |
Provides a console command to generate proxy classes. | ||||
GenerateTheme | class | Drupal\Core\Command | core/ |
Generates a new theme based on latest default markup. | 1 | |||
GenerateThemeTest | class | Drupal\BuildTests\Command | core/ |
Tests the generate-theme commands. | ||||
GeneratorNotInitializedException | class | Drupal\Core\Routing | core/ |
Class for exceptions thrown when the generator has not been initialized. | ||||
GenericCacheBackendUnitTestBase | abstract class | Drupal\KernelTests\Core\Cache | core/ |
Tests any cache backend. | 6 | |||
GenericFileFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_default' formatter. | ||||
GenericModuleTestBase | abstract class | Drupal\Tests\system\Functional\Module | core/ |
Runs a series of generic tests for one module. | 80 | 79 | ||
GenericTest | class | Drupal\Tests\system\Functional\Module | core/ |
Generic test for system module. | ||||
GenericTest | class | Drupal\Tests\system\Functional | core/ |
Generic module test for system. | ||||
GenericTest | class | Drupal\Tests\block\Functional | core/ |
Generic module test for block. | ||||
GenericTest | class | Drupal\Tests\views_ui\Functional | core/ |
Generic module test for views_ui. | ||||
GenericTest | class | Drupal\Tests\pgsql\Functional | core/ |
Generic module test for pgsql. | ||||
GenericTest | class | Drupal\Tests\contextual\Functional | core/ |
Generic module test for contextual. | ||||
GenericTest | class | Drupal\Tests\editor\Functional | core/ |
Generic module test for editor. | ||||
GenericTest | class | Drupal\Tests\big_pipe\Functional | core/ |
Generic module test for big_pipe. | ||||
GenericTest | class | Drupal\Tests\rest\Functional | core/ |
Generic module test for rest. | ||||
GenericTest | class | Drupal\Tests\inline_form_errors\Functional | core/ |
Generic module test for inline_form_errors. | ||||
GenericTest | class | Drupal\Tests\workflows\Functional | core/ |
Generic module test for workflows. | ||||
GenericTest | class | Drupal\Tests\ban\Functional | core/ |
Generic module test for ban. | ||||
GenericTest | class | Drupal\Tests\field_ui\Functional | core/ |
Generic module test for field_ui. | ||||
GenericTest | class | Drupal\Tests\field_layout\Functional | core/ |
Generic module test for field_layout. | ||||
GenericTest | class | Drupal\Tests\syslog\Functional | core/ |
Generic module test for syslog. | ||||
GenericTest | class | Drupal\Tests\announcements_feed\Functional | core/ |
Generic module test for announcements_feed. | ||||
GenericTest | class | Drupal\Tests\help\Functional | core/ |
Generic module test for help. | ||||
GenericTest | class | Drupal\Tests\datetime\Functional | core/ |
Generic module test for datetime. | ||||
GenericTest | class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Generic module test for migrate_drupal_ui. | ||||
GenericTest | class | Drupal\Tests\image\Functional | core/ |
Generic module test for image. | ||||
GenericTest | class | Drupal\Tests\basic_auth\Functional | core/ |
Generic module test for basic_auth. | ||||
GenericTest | class | Drupal\Tests\update\Functional | core/ |
Generic module test for update. | ||||
GenericTest | class | Drupal\Tests\toolbar\Functional | core/ |
Generic module test for toolbar. |
Pagination
- Previous page
- Page 84
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.