Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
GlobFileLoader | class | Symfony\Component\Routing\Loader | vendor/ |
GlobFileLoader loads files from a glob pattern. | ||||
GlobFileLoader | class | Symfony\Component\DependencyInjection\Loader | vendor/ |
GlobFileLoader loads files from a glob pattern. | 2 | |||
GmpCalculator | class | Brick\Math\Internal\Calculator | vendor/ |
Calculator implementation built around the GMP library. | ||||
GmpCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts GMP objects to array representation. | ||||
GoneHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 1 | ||
GotoAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Redirects to a different URL. | ||||
Goto_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
GPBDecodeException | class | Google\Protobuf\Internal | vendor/ |
|||||
GPBEmpty | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
GPBEmpty | class | Google\Protobuf | vendor/ |
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty)… | ||||
GPBJsonWire | class | Google\Protobuf\Internal | vendor/ |
|||||
GPBLabel | class | Google\Protobuf\Internal | vendor/ |
3 | ||||
GPBType | class | Google\Protobuf\Internal | vendor/ |
121 | ||||
GPBUtil | class | Google\Protobuf\Internal | vendor/ |
115 | ||||
GPBWire | class | Google\Protobuf\Internal | vendor/ |
28 | ||||
GPBWireType | class | Google\Protobuf\Internal | vendor/ |
|||||
Graph | class | Drupal\Component\Graph | core/ |
Directed acyclic graph manipulation. | 6 | |||
Grapheme | final class | Symfony\Polyfill\Intl\Grapheme | vendor/ |
Partial intl implementation in pure PHP. | ||||
GraphvizDumper | class | Symfony\Component\DependencyInjection\Dumper | vendor/ |
GraphvizDumper dumps a service container as a graphviz file. | ||||
GravInstaller | class | Composer\Installers | vendor/ |
|||||
Greater | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
GreaterBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
GreaterEqualBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
GreaterOrEqual | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
GreaterThan | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is greater than another value. | 1 | |||
GreaterThan | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
GreaterThanOrEqual | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is greater than or equal to another value. | 1 | |||
GreaterThanOrEqualToVersionConstraint | class | PharIo\Version | vendor/ |
|||||
GreaterThanOrEqualValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are greater than or equal to the previous (>=). | ||||
GreaterThanValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are greater than the previous (>). | ||||
Grid | class | Drupal\views\Plugin\views\style | core/ |
Style plugin to render each item in a grid cell. | ||||
GridResponsive | class | Drupal\views\Plugin\views\style | core/ |
Style plugin to render each item in a responsive grid cell. | ||||
Group | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Group | class | Peast\Selector\Node | vendor/ |
Selector group class | ||||
Group | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 1 | |||
Group | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
GroupByNumeric | class | Drupal\views\Plugin\views\sort | core/ |
Handler for GROUP BY on simple numeric fields. | ||||
GroupByNumeric | class | Drupal\views\Plugin\views\argument | core/ |
Simple handler for arguments using group by. | ||||
GroupByNumeric | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle greater than/less than filters. | ||||
GroupCollection | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
GroupCollectionIterator | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
GroupDefinitionException | class | Symfony\Component\Validator\Exception | vendor/ |
1 | ||||
GroupFilterIterator | abstract class | PHPUnit\Runner\Filter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
GroupLegacyScope | final class | mglaman\PHPStanDrupal\DeprecatedScope | vendor/ |
|||||
GroupProviderInterface | interface | Symfony\Component\Validator | vendor/ |
Defines the interface for a validation group provider. | ||||
Groups | final class | PHPUnit\Metadata\Api | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 5 | |||
Groups | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Groups | class | Symfony\Component\Serializer\Attribute | vendor/ |
@author Kévin Dunglas <dunglas@gmail.com> | 1 | |||
GroupSequence | class | Symfony\Component\Validator\Constraints | vendor/ |
A sequence of validation groups. | 13 | |||
GroupSequenceProvider | class | Symfony\Component\Validator\Constraints | vendor/ |
Attribute to define a group sequence provider. | 1 |