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
CastSqlInterface interface Drupal\views\Plugin\views\query core/modules/views/src/Plugin/views/query/CastSqlInterface.php Defines an interface for defining cast expressions in SQL. 2 1
CatchClause class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/CatchClause.php A node that represents the catch clause in a try-catch statement.
CatchHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/CatchHelper.php @internal 3
Catch_ class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php 1
CategorizingPluginManagerInterface interface Drupal\Component\Plugin core/lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php Defines an interface for plugin managers that categorize plugin definitions. 5 5
CategorizingPluginManagerTrait trait Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php Provides a trait for the CategorizingPluginManagerInterface. 4
CategoryAutocompleteController class Drupal\block\Controller core/modules/block/src/Controller/CategoryAutocompleteController.php Returns autocomplete responses for block categories.
Cbf class PHP_CodeSniffer\Reports vendor/squizlabs/php_codesniffer/src/Reports/Cbf.php
CFWSNearAt class Egulias\EmailValidator\Warning vendor/egulias/email-validator/src/Warning/CFWSNearAt.php 2
CFWSWithFWS class Egulias\EmailValidator\Warning vendor/egulias/email-validator/src/Warning/CFWSWithFWS.php 3
ChainableFilter class DeepCopy\Filter vendor/myclabs/deep-copy/src/DeepCopy/Filter/ChainableFilter.php Defines a decorator filter that will not stop the chain of filters. 1
ChainBreadcrumbBuilderInterface interface Drupal\Core\Breadcrumb core/lib/Drupal/Core/Breadcrumb/ChainBreadcrumbBuilderInterface.php Defines an interface a chained service that builds the breadcrumb. 1
ChainCache final class Twig\Cache vendor/twig/twig/src/Cache/ChainCache.php Chains several caches together.
ChainCacheClearer class Symfony\Component\HttpKernel\CacheClearer vendor/symfony/http-kernel/CacheClearer/ChainCacheClearer.php ChainCacheClearer.
ChainDecoder class Symfony\Component\Serializer\Encoder vendor/symfony/serializer/Encoder/ChainDecoder.php Decoder delegating the decoding to a chain of decoders. 1
ChainedFastBackend class Drupal\Core\Cache core/lib/Drupal/Core/Cache/ChainedFastBackend.php Defines a backend with a fast and a consistent backend chain.
ChainedFastBackendFactory class Drupal\Core\Cache core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php Defines the chained fast cache backend factory.
ChainedPlaceholderStrategy class Drupal\Core\Render\Placeholder core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php Renders placeholders using a chain of placeholder strategies.
ChainElement abstract class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/ChainElement.php A node that represents a chain element. 2
ChainEncoder class Symfony\Component\Serializer\Encoder vendor/symfony/serializer/Encoder/ChainEncoder.php Encoder delegating the decoding to a chain of encoders. 1
ChainEntityResolver class Drupal\serialization\EntityResolver core/modules/serialization/src/EntityResolver/ChainEntityResolver.php Resolver delegating the entity resolution to a chain of resolvers. 2
ChainEntityResolverInterface interface Drupal\serialization\EntityResolver core/modules/serialization/src/EntityResolver/ChainEntityResolverInterface.php An interface for delegating an entity resolution to a chain of resolvers. 1
ChainExpression class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/ChainExpression.php A node that represents a chain expression. For example: test?.test?.()
ChainLoader final class Twig\Loader vendor/twig/twig/src/Loader/ChainLoader.php Loads templates from other loaders. 1
ChainRequestMatcher class Symfony\Component\HttpFoundation vendor/symfony/http-foundation/ChainRequestMatcher.php ChainRequestMatcher verifies that all checks match against a Request instance.
ChainRequestPolicy class Drupal\Core\PageCache core/lib/Drupal/Core/PageCache/ChainRequestPolicy.php Implements a compound request policy. 2 1
ChainRequestPolicyInterface interface Drupal\Core\PageCache core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php Defines the interface for compound request policies. 1
ChainResponsePolicy class Drupal\Core\ProxyClass\PageCache core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php Provides a proxy class for \Drupal\Core\PageCache\ChainResponsePolicy.
ChainResponsePolicy class Drupal\Core\PageCache core/lib/Drupal/Core/PageCache/ChainResponsePolicy.php Implements a compound response policy. 2
ChainResponsePolicyInterface interface Drupal\Core\PageCache core/lib/Drupal/Core/PageCache/ChainResponsePolicyInterface.php Defines the interface for compound request policies. 2
ChangedCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/ChangedCommand.php An AJAX command for marking HTML elements as changed.
ChangedFieldItemList class Drupal\Core\Field core/lib/Drupal/Core/Field/ChangedFieldItemList.php Defines an item list class for changed fields. 1
ChangedItem class Drupal\Core\Field\Plugin\Field\FieldType core/lib/Drupal/Core/Field/Plugin/Field/FieldType/ChangedItem.php Defines the 'changed' entity field type.
ChangeLogger final class Drupal\package_manager\EventSubscriber core/modules/package_manager/src/EventSubscriber/ChangeLogger.php Event subscriber to log changes that happen during the stage life cycle.
ChangeReportInterface interface Composer\Downloader vendor/composer/composer/src/Composer/Downloader/ChangeReportInterface.php ChangeReport interface. 2 1
ChangeUserRoleBase abstract class Drupal\user\Plugin\Action core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Provides a base class for operations to change a user's role. 2
CharacterBeforePHPOpeningTagSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php
CharacterReference class Masterminds\HTML5\Parser vendor/masterminds/html5/src/HTML5/Parser/CharacterReference.php Manage entity references.
CharacterStream final class Symfony\Component\Mime vendor/symfony/mime/CharacterStream.php @author Fabien Potencier <fabien@symfony.com> @author Xavier De Cock <xdecock@gmail.com> 2
CharNotAllowed class Egulias\EmailValidator\Result\Reason vendor/egulias/email-validator/src/Result/Reason/CharNotAllowed.php 1
Charset final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Charset.php @author Alexandre Daubois <alex.daubois@gmail.com>
CharsetValidator final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/CharsetValidator.php @author Alexandre Daubois <alex.daubois@gmail.com>
CheckAliasValidityPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/CheckAliasValidityPass.php This pass validates aliases, it provides the following checks:
CheckArgumentsValidityPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/CheckArgumentsValidityPass.php Checks if arguments of methods are properly configured.
Checkbox class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Checkbox.php Provides a form element for a single checkbox.
Checkboxes class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Checkboxes.php Provides a form element for a set of checkboxes. 3
CheckCircularReferencesPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/CheckCircularReferencesPass.php Checks your services for circular references. 1
CheckDefinitionValidityPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/CheckDefinitionValidityPass.php This pass validates each definition individually only taking the information into account which is contained in the definition itself.
CheckExceptionOnInvalidReferenceBehaviorPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php Checks that all references are pointing to a valid service.
CheckPlainSniff class DrupalPractice\Sniffs\FunctionCalls vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/CheckPlainSniff.php Check that check_plain() is not used on literal strings.

Pagination

  • First page
  • Previous page
  • …
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Page 25
  • Page 26
  • …
  • 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