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