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