Classes, traits, and interfaces - main - drupal

Primary tabs

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
Full class Drupal\views\Plugin\views\pager core/modules/views/src/Plugin/views/pager/Full.php The plugin to handle full pager. 2
FullDate class Drupal\views\Plugin\views\argument core/modules/views/src/Plugin/views/argument/FullDate.php Argument handler for a full date (CCYYMMDD)
FullDate class Drupal\datetime\Plugin\views\argument core/modules/datetime/src/Plugin/views/argument/FullDate.php Argument handler for a full date (CCYYMMDD).
FullyQualified final class Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Attribute/FullyQualified.php #[\Drupal\Tests\Component\Annotation\Doctrine\Fixtures\ExtraAttributes\ExampleAttribute]
FullyValidatableConstraint final class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/FullyValidatableConstraint.php Constraint for fully validatable config schema type. 4
FullyValidatableConstraintValidator final class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/FullyValidatableConstraintValidator.php FullyValidatable constraint.
FunctionalJavascriptTest final class Drupal\Tests\Component\Foo core/tests/PHPStan/fixtures/component-tests.php
FunctionalTest final class Drupal\Tests\Component\Foo core/tests/PHPStan/fixtures/component-tests.php
FunctionalTestDebugHtmlOutputHelperTest class Drupal\FunctionalTests\Test core/tests/Drupal/FunctionalTests/Test/FunctionalTestDebugHtmlOutputHelperTest.php Helper test for FunctionalTestDebugHtmlOutputTest.
FunctionalTestDebugHtmlOutputTest class Drupal\FunctionalTests\Test core/tests/Drupal/FunctionalTests/Test/FunctionalTestDebugHtmlOutputTest.php Test to ensure that functional tests produce debug HTML output when required.
FunctionalTestSetupTrait trait Drupal\Core\Test core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php Defines a trait for shared functional test setup functionality. 2
FunctionsTest class Drupal\Tests\system\Kernel\Theme core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php Tests for common theme functions.
FundamentalCompatibilityConstraint class Drupal\ckeditor5\Plugin\Validation\Constraint core/modules/ckeditor5/src/Plugin/Validation/Constraint/FundamentalCompatibilityConstraint.php The fundamental compatibility constraint.
FundamentalCompatibilityConstraintValidator class Drupal\ckeditor5\Plugin\Validation\Constraint core/modules/ckeditor5/src/Plugin/Validation/Constraint/FundamentalCompatibilityConstraintValidator.php Validates fundamental compatibility of CKEditor 5 with the given text format. 1
GarbageCollectionTest class Drupal\KernelTests\Core\KeyValueStore core/tests/Drupal/KernelTests/Core/KeyValueStore/GarbageCollectionTest.php Tests garbage collection for the expirable key-value database storage.
GDImageToolkitOperationBase abstract class Drupal\system\Plugin\ImageToolkit\Operation\gd core/modules/system/src/Plugin/ImageToolkit/Operation/gd/GDImageToolkitOperationBase.php Provides a GD base class with correctly typed image toolkit. 7 1
GDToolkit class Drupal\system\Plugin\ImageToolkit core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php Defines the GD2 toolkit for image manipulation within Drupal. 9
GdToolkitAvifImageManipulationTest class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitAvifImageManipulationTest.php GD image toolkit image manipulation of AVIF images.
GdToolkitGifImageManipulationTest class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitGifImageManipulationTest.php GD image toolkit image manipulation of GIF images.
GdToolkitImageManipulationTestBase abstract class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitImageManipulationTestBase.php GD image toolkit image manipulation test base class. 6
GdToolkitJpegImageManipulationTest class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitJpegImageManipulationTest.php GD image toolkit image manipulation of JPEG images.
GdToolkitNoTransparencyGifImageManipulationTest class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitNoTransparencyGifImageManipulationTest.php GD image toolkit image manipulation of no-transparency GIF images.
GdToolkitPngImageManipulationTest class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitPngImageManipulationTest.php GD image toolkit image manipulation of PNG images.
GdToolkitWebpImageManipulationTest class Drupal\KernelTests\Core\Image core/tests/Drupal/KernelTests/Core/Image/GdToolkitWebpImageManipulationTest.php GD image toolkit image manipulation of WEBP images.
GenerateAutoloadReferenceFile final class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/GenerateAutoloadReferenceFile.php Generates an 'autoload.php' that includes the autoloader created by Composer.
GenerateAutoloadRuntimeReferenceFile final class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/GenerateAutoloadRuntimeReferenceFile.php Generates an 'autoload_runtime.php' that includes the Symfony_runtime loader.
GeneratedButton class Drupal\Core core/lib/Drupal/Core/GeneratedButton.php This class holds a <button> generated from the <button> route. 2
GeneratedColumnExpression final class Drupal\Core\Database\SchemaDefinition core/lib/Drupal/Core/Database/SchemaDefinition/GeneratedColumnExpression.php A value object representing an expression for a generated column. 4
GeneratedLink class Drupal\Core core/lib/Drupal/Core/GeneratedLink.php Used to return generated links, along with associated cacheability metadata. 2 3
GeneratedNoLink class Drupal\Core core/lib/Drupal/Core/GeneratedNoLink.php This class holds a <span> generated from the <nolink> route. 2
GeneratedUrl class Drupal\Core core/lib/Drupal/Core/GeneratedUrl.php Used to return generated URLs, along with associated bubbleable metadata. 25
GeneratePermutationsTrait trait Drupal\Tests\Traits\Core core/tests/Drupal/Tests/Traits/Core/GeneratePermutationsTrait.php Adds ability to convert a list of parameters into a stack of permutations. 3
GenerateProxyClassApplication class Drupal\Core\Command core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php Provides a console command to generate proxy classes. 1
GenerateProxyClassCommand class Drupal\Core\Command core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php Provides a console command to generate proxy classes.
GenerateTheme class Drupal\Core\Command core/lib/Drupal/Core/Command/GenerateTheme.php Generates a new theme based on latest default markup. 1
GenerateThemeTest class Drupal\BuildTests\Command core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php Tests the generate-theme commands.
GeneratorNotInitializedException class Drupal\Core\Routing core/lib/Drupal/Core/Routing/GeneratorNotInitializedException.php Class for exceptions thrown when the generator has not been initialized.
GenericCacheBackendUnitTestBase abstract class Drupal\KernelTests\Core\Cache core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Tests any cache backend. 8
GenericFileFormatter class Drupal\file\Plugin\Field\FieldFormatter core/modules/file/src/Plugin/Field/FieldFormatter/GenericFileFormatter.php Plugin implementation of the 'file_default' formatter.
GenericModuleTestBase abstract class Drupal\Tests\system\Kernel\Module core/modules/system/tests/src/Kernel/Module/GenericModuleTestBase.php Runs a series of generic tests for one module. 59 59
GenericModuleTestBase abstract class Drupal\Tests\system\Functional\Module core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php Runs a series of generic tests for one module. 74 74
GenericRecipeTestBase abstract class Drupal\Tests\system\Functional\Recipe core/modules/system/tests/src/Functional/Recipe/GenericRecipeTestBase.php Runs a series of generic tests for one recipe. 27 27
GenericTest class Drupal\Tests\system\Functional core/modules/system/tests/src/Functional/GenericTest.php Generic module test for system.
GenericTest class Drupal\Tests\filter\Functional core/modules/filter/tests/src/Functional/GenericTest.php Generic module test for filter.
GenericTest class Drupal\Tests\serialization\Functional core/modules/serialization/tests/src/Functional/GenericTest.php Generic module test for serialization.
GenericTest class Drupal\Tests\views\Functional core/modules/views/tests/src/Functional/GenericTest.php Generic module test for views.
GenericTest class Drupal\Tests\link\Functional core/modules/link/tests/src/Functional/GenericTest.php Generic module test for link.
GenericTest class Drupal\Tests\rest\Functional core/modules/rest/tests/src/Functional/GenericTest.php Generic module test for rest.
GenericTest class Drupal\Tests\inline_form_errors\Functional core/modules/inline_form_errors/tests/src/Functional/GenericTest.php Generic module test for inline_form_errors.
GenericTest class Drupal\Tests\content_translation\Functional core/modules/content_translation/tests/src/Functional/GenericTest.php Generic module test for content_translation.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.