Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ForumVocabulary | class | Drupal\taxonomy\Plugin\migrate\process | core/ |
Checks if the vocabulary being migrated is the one used for forums. | ||||
FrameworkTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests the off-canvas dialog functionality. | ||||
FrameworkTest | class | Drupal\Tests\system\Functional\Ajax | core/ |
Performs tests on AJAX framework functions. | ||||
FrontMatter | class | Drupal\Component\FrontMatter | core/ |
Component for parsing front matter from a source. | 5 | |||
FrontMatterParseException | class | Drupal\Component\FrontMatter\Exception | core/ |
Defines a class for front matter parsing exceptions. | 3 | |||
FrontMatterTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests Twig front matter support. | ||||
FrontMatterTest | class | Drupal\Tests\Component\FrontMatter | core/ |
Tests front matter parsing helper methods. | 1 | |||
FrontPageTest | class | Drupal\Tests\node\Functional\Views | core/ |
Tests the default frontpage provided by views. | ||||
FrontPageTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests front page functionality and administration. | ||||
FruitInterface | interface | Drupal\plugin_test\Plugin\plugin_test\fruit | core/ |
Provides an interface for test plugins. | 4 | |||
FTP | abstract class | Drupal\Core\FileTransfer | core/ |
Defines the base class for FTP implementations. | 1 | |||
FTPExtension | class | Drupal\Core\FileTransfer | core/ |
Defines a file transfer class using the PHP FTP extension. | ||||
Full | class | Drupal\views\Plugin\views\pager | core/ |
The plugin to handle full pager. | ||||
FullDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a full date (CCYYMMDD) | ||||
FullDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a full date (CCYYMMDD). | ||||
FunctionalJavascriptTestSuite | class | Drupal\Tests\TestSuites | core/ |
Discovers tests for the functional-javascript test suite. | ||||
FunctionalTestSetupTrait | trait | Drupal\Core\Test | core/ |
Defines a trait for shared functional test setup functionality. | 2 | |||
FunctionalTestSuite | 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. | 4 | |||
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. | ||||
GenerateThemeTest | class | Drupal\Tests\Core\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. | ||||
Get | class | Drupal\migrate\Plugin\migrate\process | core/ |
Gets the source value. | 2 | |||
GetFilenameTest | class | Drupal\KernelTests\Core\Bootstrap | core/ |
Tests that drupal_get_filename() works correctly. | ||||
GetRdfNamespacesTest | class | Drupal\Tests\rdf\Functional | core/ |
Tests hook_rdf_namespaces(). | ||||
GetTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the get process plugin. | ||||
GetTestMethodCallerExtendsTest | class | Drupal\FunctionalTests | core/ |
Test for BrowserTestBase::getTestMethodCaller() in child classes. | ||||
GetTestMethodCallerTest | class | Drupal\FunctionalTests | core/ |
Explicit test for BrowserTestBase::getTestMethodCaller(). | 1 | |||
Gettext | class | Drupal\locale | core/ |
Static class providing Drupal specific Gettext functionality. | 1 | |||
GetUntransformedTextCommand | class | Drupal\quickedit\Ajax | core/ |
AJAX command to rerender formatted text field without transformation filters. | 1 | |||
GetUntransformedTextCommand | in drupal:9.5.0 and is removed from drupal:10.0.0. There is no replacement. |
class | Drupal\editor\Ajax | core/ |
Rerenders a formatted text field without any transformation filters. | 1 | ||
Git | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Provide some Git utility operations. | ||||
GlobalAttribute | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Global Attribute for filter_html. | 1 | |||
GlossaryStatusFilterTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests that the status filter is added to the glossary view. | ||||
GlossaryTest | class | Drupal\Tests\views\Functional | core/ |
Tests glossary functionality of views. |
Pagination
- Previous page
- Page 80
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.