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
CommentStatistics class Drupal\comment core/modules/comment/src/CommentStatistics.php 2
CommentStatisticsInterface interface Drupal\comment core/modules/comment/src/CommentStatisticsInterface.php Provides an interface for storing and retrieving comment statistics. 1
CommentStorage class Drupal\comment core/modules/comment/src/CommentStorage.php Defines the storage handler class for comments. 1
CommentStorageInterface interface Drupal\comment core/modules/comment/src/CommentStorageInterface.php Defines an interface for comment entity storage classes. 1 1
CommentStorageSchema class Drupal\comment core/modules/comment/src/CommentStorageSchema.php Defines the comment schema handler. 1
CommentStrategy interface Egulias\EmailValidator\Parser\CommentStrategy vendor/egulias/email-validator/src/Parser/CommentStrategy/CommentStrategy.php 2 1
CommentTokensHooks class Drupal\comment\Hook core/modules/comment/src/Hook/CommentTokensHooks.php Hook implementations for comment.
CommentTranslationHandler class Drupal\comment core/modules/comment/src/CommentTranslationHandler.php Defines the translation handler for comments. 1
CommentType class Drupal\comment\Entity core/modules/comment/src/Entity/CommentType.php Defines the comment type entity. 2
CommentType class Drupal\comment\Plugin\migrate\source core/modules/comment/src/Plugin/migrate/source/CommentType.php Drupal 6/7 comment types source from database.
CommentTypeDeleteForm class Drupal\comment\Form core/modules/comment/src/Form/CommentTypeDeleteForm.php Provides a confirmation form for deleting a comment type entity. 1
CommentTypeForm class Drupal\comment core/modules/comment/src/CommentTypeForm.php Base form handler for comment type edit forms. 1
CommentTypeInterface interface Drupal\comment core/modules/comment/src/CommentTypeInterface.php Provides an interface defining a comment type entity. 1 1
CommentTypeListBuilder class Drupal\comment core/modules/comment/src/CommentTypeListBuilder.php Defines a class to build a listing of comment type entities. 1
CommentViewBuilder class Drupal\comment core/modules/comment/src/CommentViewBuilder.php View builder handler for comments. 1
CommentViewsData class Drupal\comment core/modules/comment/src/CommentViewsData.php Provides views data for the comment entity type. 1
CommentViewsHooks class Drupal\comment\Hook core/modules/comment/src/Hook/CommentViewsHooks.php Hook implementations for comment.
CommentWidget class Drupal\comment\Plugin\Field\FieldWidget core/modules/comment/src/Plugin/Field/FieldWidget/CommentWidget.php Provides a default comment widget.
Committer final class PhpTuf\ComposerStager\Internal\Core vendor/php-tuf/composer-stager/src/Internal/Core/Committer.php @package Core 2
CommitterInterface interface PhpTuf\ComposerStager\API\Core vendor/php-tuf/composer-stager/src/API/Core/CommitterInterface.php Makes the staged changes live by syncing the active directory with the staging directory. 2 4 1
CommitterPreconditions final class PhpTuf\ComposerStager\Internal\Precondition\Service vendor/php-tuf/composer-stager/src/Internal/Precondition/Service/CommitterPreconditions.php @package Precondition 2
CommitterPreconditionsInterface interface PhpTuf\ComposerStager\API\Precondition\Service vendor/php-tuf/composer-stager/src/API/Precondition/Service/CommitterPreconditionsInterface.php Asserts the preconditions for the committer. 1 2
Common class GPBMetadata\Opentelemetry\Proto\Common\V1 vendor/open-telemetry/gen-otlp-protobuf/GPBMetadata/Opentelemetry/Proto/Common/V1/Common.php
Common class PHP_CodeSniffer\Util vendor/squizlabs/php_codesniffer/src/Util/Common.php 41
CommonClassesStrategy final class Http\Discovery\Strategy vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php @internal
CommonPreconditions final class PhpTuf\ComposerStager\Internal\Precondition\Service vendor/php-tuf/composer-stager/src/Internal/Precondition/Service/CommonPreconditions.php @package Precondition 2
CommonPreconditionsInterface interface PhpTuf\ComposerStager\API\Precondition\Service vendor/php-tuf/composer-stager/src/API/Precondition/Service/CommonPreconditionsInterface.php Asserts the preconditions common to all API operations. 1 5
CommonPsr17ClassesStrategy final class Http\Discovery\Strategy vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php @internal
Compact class Peast\Formatter vendor/mck89/peast/lib/Peast/Formatter/Compact.php Compact formatter. 1
Comparator class Symfony\Component\Finder\Comparator vendor/symfony/finder/Comparator/Comparator.php @author Fabien Potencier <fabien@symfony.com> 2
Comparator abstract class SebastianBergmann\Comparator vendor/sebastian/comparator/src/Comparator.php 6 4
Comparator class Composer\Semver vendor/composer/semver/src/Comparator.php 3
ComparatorRegistered final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/ComparatorRegistered.php @psalm-immutable
ComparatorRegisteredSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/ComparatorRegisteredSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Comparer class Composer\Package\Comparer vendor/composer/composer/src/Composer/Package/Comparer/Comparer.php class Comparer 1
ComparisonFailure final class PHPUnit\Event\Code vendor/phpunit/phpunit/src/Event/Value/ComparisonFailure.php @psalm-immutable 3
ComparisonFailure final class SebastianBergmann\Comparator vendor/sebastian/comparator/src/ComparisonFailure.php 12
ComparisonFailureBuilder final class PHPUnit\Event\Code vendor/phpunit/phpunit/src/Event/Value/ComparisonFailureBuilder.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
ComparisonMethodDoesNotAcceptParameterTypeException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotAcceptParameterTypeException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
ComparisonMethodDoesNotDeclareBoolReturnTypeException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
ComparisonMethodDoesNotDeclareExactlyOneParameterException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
ComparisonMethodDoesNotDeclareParameterTypeException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareParameterTypeException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
ComparisonMethodDoesNotExistException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotExistException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
ComparisonOperatorUsageSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php
ComparisonRequirement final class PHPUnit\Metadata\Version vendor/phpunit/phpunit/src/Metadata/Version/ComparisonRequirement.php @psalm-immutable 1
CompiledClassMetadataCacheWarmer final class Symfony\Component\Serializer\CacheWarmer vendor/symfony/serializer/CacheWarmer/CompiledClassMetadataCacheWarmer.php @author Fabien Bourigault <bourigaultfabien@gmail.com>
CompiledClassMetadataFactory final class Symfony\Component\Serializer\Mapping\Factory vendor/symfony/serializer/Mapping/Factory/CompiledClassMetadataFactory.php @author Fabien Bourigault <bourigaultfabien@gmail.com>
CompiledRoute class Drupal\Core\Routing core/lib/Drupal/Core/Routing/CompiledRoute.php A compiled route contains derived information from a route object.
CompiledRoute class Symfony\Component\Routing vendor/symfony/routing/CompiledRoute.php CompiledRoutes are returned by the RouteCompiler class. 1 1
CompiledUrlGenerator class Symfony\Component\Routing\Generator vendor/symfony/routing/Generator/CompiledUrlGenerator.php Generates URLs based on rules dumped by CompiledUrlGeneratorDumper. 1

Pagination

  • First page
  • Previous page
  • …
  • Page 25
  • Page 26
  • Page 27
  • Page 28
  • Page 29
  • Page 30
  • Page 31
  • Page 32
  • Page 33
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal