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
StateInterface interface Drupal\Core\State core/lib/Drupal/Core/State/StateInterface.php Defines the interface for the state system. 1 54
StateInterface interface Drupal\workflows core/modules/workflows/src/StateInterface.php An interface for state value objects. 2 8
Statement interface Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/Statement.php Interface that every statement node must implement. 18 1
Statement class Drupal\sqlite\Driver\Database\sqlite core/modules/sqlite/src/Driver/Database/sqlite/Statement.php SQLite implementation of \Drupal\Core\Database\Statement.
StatementExecutionEndEvent class Drupal\Core\Database\Event core/lib/Drupal/Core/Database/Event/StatementExecutionEndEvent.php Represents the end of a statement execution as an event. 1 4
StatementExecutionFailureEvent class Drupal\Core\Database\Event core/lib/Drupal/Core/Database/Event/StatementExecutionFailureEvent.php Represents the failure of a statement execution as an event. 2
StatementExecutionStartEvent class Drupal\Core\Database\Event core/lib/Drupal/Core/Database/Event/StatementExecutionStartEvent.php Represents the start of a statement execution as an event. 2
StatementExecutionSubscriber class Drupal\Core\Database\EventSubscriber core/lib/Drupal/Core/Database/EventSubscriber/StatementExecutionSubscriber.php Response subscriber to statement executions.
StatementInterface interface Drupal\Core\Database core/lib/Drupal/Core/Database/StatementInterface.php Represents a prepared statement. 3 7
StatementIteratorTrait trait Drupal\Core\Database core/lib/Drupal/Core/Database/StatementIteratorTrait.php StatementInterface iterator trait.
StatementPrefetchIterator class Drupal\Core\Database core/lib/Drupal/Core/Database/StatementPrefetchIterator.php An implementation of StatementInterface that prefetches all data. 1 1
StatementWrapperIterator class Drupal\Core\Database core/lib/Drupal/Core/Database/StatementWrapperIterator.php StatementInterface iterator implementation. 2
StateTransitionValidation class Drupal\content_moderation core/modules/content_moderation/src/StateTransitionValidation.php Validates whether a certain state transition is allowed. 2
StateTransitionValidationInterface interface Drupal\content_moderation core/modules/content_moderation/src/StateTransitionValidationInterface.php Validates whether a certain state transition is allowed. 1 3
StaticAnalysisCacheNotConfiguredException final class SebastianBergmann\CodeCoverage vendor/phpunit/php-code-coverage/src/Exception/StaticAnalysisCacheNotConfiguredException.php 3
StaticBlock class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/StaticBlock.php A node that represents a class static block
StaticCall class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php 10
StaticClosureSniff class SlevomatCodingStandard\Sniffs\Functions vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/StaticClosureSniff.php
StaticDiscovery class Drupal\Component\Plugin\Discovery core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php Allows plugin definitions to be manually registered. 1
StaticDiscoveryDecorator class Drupal\Component\Plugin\Discovery core/lib/Drupal/Component/Plugin/Discovery/StaticDiscoveryDecorator.php A decorator that allows manual registration of undiscoverable definitions. 1
StaticEnvVarLoader class Symfony\Component\DependencyInjection vendor/symfony/dependency-injection/StaticEnvVarLoader.php
StaticMap class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/StaticMap.php Changes the source value based on a static lookup map. 3 3
StaticMenuLinkOverrides class Drupal\Core\Menu core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php Defines an implementation of the menu link override using a config file.
StaticMenuLinkOverridesInterface interface Drupal\Core\Menu core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php Defines an interface for objects which overrides menu links defined in YAML. 1 1
StaticMethod

This contract is totally covered by Tag contract. Every class using StaticMethod also use Tag

interface phpDocumentor\Reflection\DocBlock\Tags\Factory vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php
StaticMethodLoader class Symfony\Component\Validator\Mapping\Loader vendor/symfony/validator/Mapping/Loader/StaticMethodLoader.php Loads validation metadata by calling a static method on the loaded class. 1
StaticNodeProvider class Ramsey\Uuid\Provider\Node vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php StaticNodeProvider provides a static node value with the multicast bit set
StaticPrefixCollection class Symfony\Component\Routing\Matcher\Dumper vendor/symfony/routing/Matcher/Dumper/StaticPrefixCollection.php Prefix tree of routes preserving routes order.
StaticPropertyFetch class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php 1
StaticReflectionClass class Drupal\Component\Annotation\Doctrine core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php
StaticReflectionParser class Drupal\migrate\Plugin\Discovery core/modules/migrate/src/Plugin/Discovery/StaticReflectionParser.php Allows getting the reflection parser for the parent class.
StaticReflectionParser class Drupal\Component\Annotation\Doctrine core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php Parses a file for namespaces/use/class declarations. 1 6
StaticServiceDeprecatedServiceRule final class mglaman\PHPStanDrupal\Rules\Deprecations vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/StaticServiceDeprecatedServiceRule.php @implements Rule<Node\Expr\StaticCall>
StaticThisUsageSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php
StaticTranslation class Drupal\Core\StringTranslation\Translator core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php String translator with a static cache for translations. 2
StaticTrustedCallbackHelper class Drupal\Core\Security core/lib/Drupal/Core/Security/StaticTrustedCallbackHelper.php Defines a class for performing trusted callbacks in a static context. 2
StaticType final class SebastianBergmann\Type vendor/sebastian/type/src/type/StaticType.php
StaticVar class PhpParser\Node vendor/nikic/php-parser/lib/PhpParser/Node/StaticVar.php 1
Static_ final class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/Static_.php Value Object representing the 'static' type. 1
Static_ class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php
StatisticsLastCommentName class Drupal\comment\Plugin\views\sort core/modules/comment/src/Plugin/views/sort/StatisticsLastCommentName.php Sort handler, sorts by last comment name which can be in 2 different fields.
StatisticsLastCommentName class Drupal\comment\Plugin\views\field core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php Field handler to present the name of the last comment poster.
StatisticsLastUpdated class Drupal\comment\Plugin\views\field core/modules/comment/src/Plugin/views/field/StatisticsLastUpdated.php Field handler to display the newer of last comment / node updated.
StatisticsLastUpdated class Drupal\comment\Plugin\views\sort core/modules/comment/src/Plugin/views/sort/StatisticsLastUpdated.php Sort handler for the newer of last comment / entity updated.
StatisticsLastUpdated class Drupal\comment\Plugin\views\filter core/modules/comment/src/Plugin/views/filter/StatisticsLastUpdated.php Filter handler for the newer of last comment / node updated.
Status class Opentelemetry\Proto\Trace\V1 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Status.php The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. 1
Status class Composer\XdebugHandler vendor/composer/xdebug-handler/src/Status.php @author John Stevenson <john-stevenson@blueyonder.co.uk> @internal
Status class Drupal\media\Plugin\views\filter core/modules/media/src/Plugin/views/filter/Status.php Filter by published status.
Status class Drupal\file\Plugin\views\filter core/modules/file/src/Plugin/views/filter/Status.php Filter by file status.
Status class Drupal\node\Plugin\views\filter core/modules/node/src/Plugin/views/filter/Status.php Filter by published status.

Pagination

  • First page
  • Previous page
  • …
  • Page 174
  • Page 175
  • Page 176
  • Page 177
  • Page 178
  • Page 179
  • Page 180
  • Page 181
  • Page 182
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal