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
CommandIsSuccessful final class Symfony\Component\Console\Tester\Constraint vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php 1
CommandLineOrUnsafeMethod class Drupal\Core\PageCache\RequestPolicy core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php Reject when running from the command line or when HTTP method is not safe. 2
CommandLoaderInterface interface Symfony\Component\Console\CommandLoader vendor/symfony/console/CommandLoader/CommandLoaderInterface.php @author Robin Chalas <robin.chalas@gmail.com> 2 1
CommandNotFoundException class Symfony\Component\Console\Exception vendor/symfony/console/Exception/CommandNotFoundException.php Represents an incorrect command name typed in the console. 1 7
CommandProvider class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/CommandProvider.php List of all commands provided by this package. 1
CommandProvider interface Composer\Plugin\Capability vendor/composer/composer/src/Composer/Plugin/Capability/CommandProvider.php Commands Provider Interface 1 2
CommandTester class Symfony\Component\Console\Tester vendor/symfony/console/Tester/CommandTester.php Eases the testing of console commands.
CommandWithAttachedAssetsInterface interface Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsInterface.php Interface for Ajax commands that render content and attach assets. 5
CommandWithAttachedAssetsTrait trait Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php Trait for Ajax commands that render content and attach assets.
CommaSniff class Drupal\Sniffs\WhiteSpace vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/CommaSniff.php \Drupal\Sniffs\WhiteSpace\CommaSniff.
Comment class Drupal\comment\Plugin\views\wizard core/modules/comment/src/Plugin/views/wizard/Comment.php Tests creating comment views with the wizard.
Comment class Egulias\EmailValidator\Warning vendor/egulias/email-validator/src/Warning/Comment.php 1
Comment class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Comment.php @internal
Comment class PHP_CodeSniffer\Tokenizers vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php
Comment class Egulias\EmailValidator\Parser vendor/egulias/email-validator/src/Parser/Comment.php
Comment class Drupal\comment\Entity core/modules/comment/src/Entity/Comment.php Defines the comment entity class.
Comment class PhpParser vendor/nikic/php-parser/lib/PhpParser/Comment.php 1 2
Comment class Drupal\comment\Plugin\migrate\source\d6 core/modules/comment/src/Plugin/migrate/source/d6/Comment.php Drupal 6 comment source from database.
Comment class Drupal\comment\Plugin\migrate\source\d7 core/modules/comment/src/Plugin/migrate/source/d7/Comment.php Drupal 7 comment source from database.
Comment class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/Comment.php A node that represents a comment. 1
CommentAccessControlHandler class Drupal\comment core/modules/comment/src/CommentAccessControlHandler.php Defines the access control handler for the comment entity type. 1
CommentAdminOverview class Drupal\comment\Form core/modules/comment/src/Form/CommentAdminOverview.php Provides the comments overview administration form. 1
CommentAnnotatingVisitor class PhpParser\NodeVisitor vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/CommentAnnotatingVisitor.php 1
CommentBreadcrumbBuilder class Drupal\comment core/modules/comment/src/CommentBreadcrumbBuilder.php Class to define the comment breadcrumb builder. 2
CommentBulkForm class Drupal\comment\Plugin\views\field core/modules/comment/src/Plugin/views/field/CommentBulkForm.php Defines a comment operations bulk form element.
CommentController class Drupal\comment\Controller core/modules/comment/src/Controller/CommentController.php Controller for the comment entity.
CommentDefaultFormatter class Drupal\comment\Plugin\Field\FieldFormatter core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php Provides a default comment formatter.
CommentedEntity class Drupal\comment\Plugin\views\field core/modules/comment/src/Plugin/views/field/CommentedEntity.php Views field display for commented entity.
CommentedOutCodeSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php
CommentEmptyLineSniff class DrupalPractice\Sniffs\Commenting vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Commenting/CommentEmptyLineSniff.php Throws a warning if there is a blank line after an inline comment.
CommentEntityTranslation class Drupal\comment\Plugin\migrate\source\d7 core/modules/comment/src/Plugin/migrate/source/d7/CommentEntityTranslation.php Drupal 7 comment entity translation source plugin.
CommentFieldItemList class Drupal\comment core/modules/comment/src/CommentFieldItemList.php Defines an item list class for comment fields. 1
CommentForm class Drupal\comment core/modules/comment/src/CommentForm.php Base handler for comment forms. 1
CommentHandler class Symfony\Component\CssSelector\Parser\Handler vendor/symfony/css-selector/Parser/Handler/CommentHandler.php CSS selector comment handler.
CommentHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/CommentHelper.php @internal 7
CommentHooks class Drupal\comment\Hook core/modules/comment/src/Hook/CommentHooks.php Hook implementations for comment.
CommentInterface interface Drupal\comment core/modules/comment/src/CommentInterface.php Provides an interface defining a comment entity. 1 9
CommentItem class Drupal\comment\Plugin\Field\FieldType core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php Plugin implementation of the 'comment' field type.
CommentItemInterface interface Drupal\comment\Plugin\Field\FieldType core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php Interface definition for Comment items. 1 11
CommentLazyBuilders class Drupal\comment core/modules/comment/src/CommentLazyBuilders.php Defines a service for comment #lazy_builder callbacks. 2
CommentLinkBuilder class Drupal\comment core/modules/comment/src/CommentLinkBuilder.php Defines a class for building markup for comment links on a commented entity. 2
CommentLinkBuilderInterface interface Drupal\comment core/modules/comment/src/CommentLinkBuilderInterface.php Defines an interface for building comment links on a commented entity. 1
CommentManager class Drupal\comment core/modules/comment/src/CommentManager.php Comment manager contains common functions to manage comment fields. 2
CommentManagerInterface interface Drupal\comment core/modules/comment/src/CommentManagerInterface.php Comment manager contains common functions to manage comment fields. 1 3
CommentNameConstraint class Drupal\comment\Plugin\Validation\Constraint core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php Supports validating comment author names.
CommentNameConstraintValidator class Drupal\comment\Plugin\Validation\Constraint core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Validates the CommentName constraint.
CommentPermalinkFormatter class Drupal\comment\Plugin\Field\FieldFormatter core/modules/comment/src/Plugin/Field/FieldFormatter/CommentPermalinkFormatter.php Plugin implementation of the 'comment_permalink' formatter.
CommentSelection class Drupal\comment\Plugin\EntityReferenceSelection core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php Provides specific access control for the comment entity type.
CommentsInIDRight class Egulias\EmailValidator\Result\Reason vendor/egulias/email-validator/src/Result/Reason/CommentsInIDRight.php 1
CommentsRegistry class Peast\Syntax vendor/mck89/peast/lib/Peast/Syntax/CommentsRegistry.php Comments registry class. Internal class used to manage comments

Pagination

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