Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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
GenericRule class Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/GenericRule.php @author Nils Adermann <naderman@naderman.de>
GenericTagValueNode class PHPStan\PhpDocParser\Ast\PhpDoc vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/GenericTagValueNode.php 2
GenericTimeConverter class Ramsey\Uuid\Converter\Time vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php GenericTimeConverter uses the provided calculator to calculate and convert time values 2
GenericTypeNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/GenericTypeNode.php 12
GenericValidator final class Ramsey\Uuid\Validator vendor/ramsey/uuid/src/Validator/GenericValidator.php GenericValidator validates strings as UUIDs of any variant 1
Get class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/Get.php Gets the source value.
GetAttrExpression class Twig\Node\Expression vendor/twig/twig/src/Node/Expression/GetAttrExpression.php 9
GetDeprecatedServiceRule final class mglaman\PHPStanDrupal\Rules\Deprecations vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/GetDeprecatedServiceRule.php @implements Rule<Node\Expr\MethodCall>
GetPublicDescriptorTrait trait Google\Protobuf\Internal vendor/google/protobuf/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php 3
GetQueryReturnTypeExtension final class mglaman\PHPStanDrupal\Type\EntityStorage vendor/mglaman/phpstan-drupal/src/Type/EntityStorage/GetQueryReturnTypeExtension.php
GetRequestDataSniff class PHP_CodeSniffer\Standards\MySource\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php
GetRequestDataSniff class DrupalPractice\Sniffs\Variables vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Variables/GetRequestDataSniff.php Ensures that Symfony request object is used to access super globals.
GetSetMethodNormalizer final class Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php Converts between objects with getter and setter methods and arrays.
GetSetMethodNormalizerContextBuilder final class Symfony\Component\Serializer\Context\Normalizer vendor/symfony/serializer/Context/Normalizer/GetSetMethodNormalizerContextBuilder.php A helper providing autocompletion for available GetSetMethodNormalizer options.
GetterMetadata class Symfony\Component\Validator\Mapping vendor/symfony/validator/Mapping/GetterMetadata.php Stores all metadata needed for validating a class property via its getter method. 1
Gettext class Drupal\locale core/modules/locale/src/Gettext.php Static class providing Drupal specific Gettext functionality. 1
Git class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/Git.php Provide some Git utility operations.
Git class Composer\Util vendor/composer/composer/src/Composer/Util/Git.php @author Jordi Boggiano <j.boggiano@seld.be> 6
GitBitbucketDriver class Composer\Repository\Vcs vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php @author Per Bernhardt <plb@webfactory.de>
Gitblame class PHP_CodeSniffer\Reports vendor/squizlabs/php_codesniffer/src/Reports/Gitblame.php
GitDownloader class Composer\Downloader vendor/composer/composer/src/Composer/Downloader/GitDownloader.php @author Jordi Boggiano <j.boggiano@seld.be>
GitDriver class Composer\Repository\Vcs vendor/composer/composer/src/Composer/Repository/Vcs/GitDriver.php @author Jordi Boggiano <j.boggiano@seld.be>
GitExcludeFilter class Composer\Package\Archiver vendor/composer/composer/src/Composer/Package/Archiver/GitExcludeFilter.php An exclude filter that processes gitattributes
GitExcluder final class Drupal\package_manager\PathExcluder core/modules/package_manager/src/PathExcluder/GitExcluder.php Excludes .git directories from stage operations.
GitHub class Composer\Util vendor/composer/composer/src/Composer/Util/GitHub.php @author Jordi Boggiano <j.boggiano@seld.be> 1
GithubActionError final class Composer\Console vendor/composer/composer/src/Composer/Console/GithubActionError.php 1
GithubActionReporter class Symfony\Component\Console\CI vendor/symfony/console/CI/GithubActionReporter.php Utility class for Github actions. 1
GitHubDriver class Composer\Repository\Vcs vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php @author Jordi Boggiano <j.boggiano@seld.be>
Gitignore class Symfony\Component\Finder vendor/symfony/finder/Gitignore.php Gitignore matches against text. 1
GitLab class Composer\Util vendor/composer/composer/src/Composer/Util/GitLab.php @author Roshan Gautam <roshan.gautam@hotmail.com> 1
Gitlab class Micheh\PhpCodeSniffer\Report vendor/micheh/phpcs-gitlab/src/Report/Gitlab.php
GitLabDriver class Composer\Repository\Vcs vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php Driver for GitLab API, use the Git driver for local checkouts.
GitMergeConflictSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php
GitModified class PHP_CodeSniffer\Filters vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php
GitStaged class PHP_CodeSniffer\Filters vendor/squizlabs/php_codesniffer/src/Filters/GitStaged.php
Glob class Symfony\Component\Finder vendor/symfony/finder/Glob.php Glob matches globbing patterns against text. 2
GlobalAttribute class Drupal\ckeditor5\Plugin\CKEditor5Plugin core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/GlobalAttribute.php CKEditor 5 Global Attribute for filter_html. 1
GlobalClassSniff class DrupalPractice\Sniffs\Objects vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalClassSniff.php Checks that Node::load() calls and friends are not used in forms, controllers or services.
GlobalCommand class Composer\Command vendor/composer/composer/src/Composer/Command/GlobalCommand.php @author Jordi Boggiano <j.boggiano@seld.be>
GlobalConstantSniff class DrupalPractice\Sniffs\Constants vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Constants/GlobalConstantSniff.php Checks that globally defined constants are not used in Drupal 8 and higher.
GlobalDefineSniff class DrupalPractice\Sniffs\Constants vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Constants/GlobalDefineSniff.php Checks that global define() constants are not used in modules in Drupal 8.
GlobalDrupalDependencyInjectionRule class mglaman\PHPStanDrupal\Rules\Drupal vendor/mglaman/phpstan-drupal/src/Rules/Drupal/GlobalDrupalDependencyInjectionRule.php @implements Rule<Node\Expr\StaticCall>
GlobalDrupalSniff class DrupalPractice\Sniffs\Objects vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalDrupalSniff.php Checks that \Drupal::service() and friends is not used in forms, controllers, services.
GlobalFunctionSniff class DrupalPractice\Sniffs\Objects vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalFunctionSniff.php Checks that global functions like t() are not used in forms or controllers.
GlobalFunctionSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/GlobalFunctionSniff.php
GlobalKeywordSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/GlobalKeywordSniff.php
Globals final class OpenTelemetry\API vendor/open-telemetry/api/Globals.php Provides access to the globally configured instrumentation instances. 3
GlobalsInterface interface Twig\Extension vendor/twig/twig/src/Extension/GlobalsInterface.php Allows Twig extensions to add globals to the context. 1
GlobalState final class PHPUnit\Util vendor/phpunit/phpunit/src/Util/GlobalState.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
Global_ class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php

Pagination

  • First page
  • Previous page
  • …
  • Page 82
  • Page 83
  • Page 84
  • Page 85
  • Page 86
  • Page 87
  • Page 88
  • Page 89
  • Page 90
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal