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
BreakStatement class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/BreakStatement.php A node that represents the "break" statement inside loops.
Break_ class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php
BrickMathCalculator final class Ramsey\Uuid\Math vendor/ramsey/uuid/src/Math/BrickMathCalculator.php A calculator using the brick/math library for arbitrary-precision arithmetic 6
Broken class Drupal\views\Plugin\views\sort core/modules/views/src/Plugin/views/sort/Broken.php A special handler to take the place of missing or broken handlers.
Broken class Drupal\views\Plugin\views\field core/modules/views/src/Plugin/views/field/Broken.php A special handler to take the place of missing or broken handlers.
Broken class Drupal\Core\Entity\Plugin\EntityReferenceSelection core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php Defines a fallback plugin for missing entity_reference selection plugins.
Broken class Drupal\views\Plugin\views\relationship core/modules/views/src/Plugin/views/relationship/Broken.php A special handler to take the place of missing or broken handlers.
Broken class Drupal\views\Plugin\views\argument core/modules/views/src/Plugin/views/argument/Broken.php A special handler to take the place of missing or broken handlers.
Broken class Drupal\Core\Block\Plugin\Block core/lib/Drupal/Core/Block/Plugin/Block/Broken.php Defines a fallback plugin for missing block plugins.
Broken class Drupal\views\Plugin\views\filter core/modules/views/src/Plugin/views/filter/Broken.php A special handler to take the place of missing or broken handlers. 1
Broken class Drupal\views\Plugin\views\area core/modules/views/src/Plugin/views/area/Broken.php A special handler to take the place of missing or broken handlers.
BrokenHandlerTrait trait Drupal\views\Plugin\views core/modules/views/src/Plugin/views/BrokenHandlerTrait.php A Trait for Views broken handlers. 6
BrokenPostRequestException class Drupal\Core\Form\Exception core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php Defines an exception used, when the POST HTTP body is broken. 2
Browser final class WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/Browser.php WebDriver\Browser class
BrowserCookieValueSame final class Symfony\Component\BrowserKit\Test\Constraint vendor/symfony/browser-kit/Test/Constraint/BrowserCookieValueSame.php
BrowserHasCookie final class Symfony\Component\BrowserKit\Test\Constraint vendor/symfony/browser-kit/Test/Constraint/BrowserHasCookie.php
BrowserKitDriver class Behat\Mink\Driver vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php Symfony BrowserKit driver.
BrowserSpecificStylesSniff class PHP_CodeSniffer\Standards\MySource\Sniffs\CSS vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php
BubbleableMetadata class Drupal\Core\Render core/lib/Drupal/Core/Render/BubbleableMetadata.php Value object used for bubbleable rendering metadata. 3 40
BucketEntry final class OpenTelemetry\SDK\Metrics\Exemplar vendor/open-telemetry/sdk/Metrics/Exemplar/BucketEntry.php @internal
Buckets class Opentelemetry\Proto\Metrics\V1\ExponentialHistogramDataPoint vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint/Buckets.php Buckets are a set of bucket counts, encoded in a contiguous array of counts.
BucketStorage final class OpenTelemetry\SDK\Metrics\Exemplar vendor/open-telemetry/sdk/Metrics/Exemplar/BucketStorage.php @internal
BufferedOutput class Symfony\Component\Console\Output vendor/symfony/console/Output/BufferedOutput.php @author Jean-François Simon <contact@jfsimon.fr> 1
BufferingLogger class Symfony\Component\ErrorHandler vendor/symfony/error-handler/BufferingLogger.php A buffering logger that stacks logs for later.
BufferIO class Composer\IO vendor/composer/composer/src/Composer/IO/BufferIO.php @author Jordi Boggiano <j.boggiano@seld.be> 2
BufferStream final class GuzzleHttp\Psr7 vendor/guzzlehttp/psr7/src/BufferStream.php Provides a buffer stream that can be written to to fill a buffer, and read from to remove bytes from the buffer.
Builder final class PHPUnit\TextUI\Configuration vendor/phpunit/phpunit/src/TextUI/Configuration/Builder.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Builder interface PhpParser vendor/nikic/php-parser/lib/PhpParser/Builder.php 8 3
Builder final class PHPUnit\TextUI\CliArguments vendor/phpunit/phpunit/src/TextUI/Configuration/Cli/Builder.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
Builder final class SebastianBergmann\CodeCoverage\Node vendor/phpunit/php-code-coverage/src/Node/Builder.php @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage 1
BuilderCollection

this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from a pre-`phpstan/phpstan` and pre-`vimeo/psalm` ecosystem, in which type safety had to be mostly enforced at runtime: that is no longer necessary, now that you can safely verify your code to be correct, and use more generic types like `iterable<T>` instead.

class Ramsey\Uuid\Builder vendor/ramsey/uuid/src/Builder/BuilderCollection.php A collection of UuidBuilderInterface objects
BuilderFactory class PhpParser vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php
BuilderHelpers final class PhpParser vendor/nikic/php-parser/lib/PhpParser/BuilderHelpers.php This class defines helpers used in the implementation of builders. Don't use it directly. 16
BuilderInterface interface Drupal\Composer\Generator composer/Generator/BuilderInterface.php Produce the output for a metapackage. 1 1
BuilderNotFoundException class Ramsey\Uuid\Exception vendor/ramsey/uuid/src/Exception/BuilderNotFoundException.php Thrown to indicate that no suitable builder could be found 1
BuildInformation final class SebastianBergmann\CodeCoverage\Report\Xml vendor/phpunit/php-code-coverage/src/Report/Xml/BuildInformation.php @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
BuildMetaData class PharIo\Version vendor/phar-io/version/src/BuildMetaData.php
BulkForm class Drupal\views\Plugin\views\field core/modules/views/src/Plugin/views/field/BulkForm.php Defines an actions-based bulk operation form element. 3 3
BumpCommand final class Composer\Command vendor/composer/composer/src/Composer/Command/BumpCommand.php @author Jordi Boggiano <j.boggiano@seld.be>
Bundle class Drupal\views\Plugin\views\filter core/modules/views/src/Plugin/views/filter/Bundle.php Filter class which allows filtering by entity bundles.
Bundle abstract class Symfony\Component\HttpKernel\Bundle vendor/symfony/http-kernel/Bundle/Bundle.php An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions. 1
BundleClassInheritanceException class Drupal\Core\Entity\Exception core/lib/Drupal/Core/Entity/Exception/BundleClassInheritanceException.php Exception thrown if a bundle class does not extend the main entity class. 1
BundleConfigImportValidate class Drupal\Core\Entity\Event core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php Entity config importer validation event subscriber.
BundleConstraint class Drupal\Core\Entity\Plugin\Validation\Constraint core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php Checks if a value is a valid entity type. 1
BundleConstraintValidator class Drupal\Core\Entity\Plugin\Validation\Constraint core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php Validates the Bundle constraint.
BundledComponent class PharIo\Manifest vendor/phar-io/manifest/src/values/BundledComponent.php
BundledComponentCollection class PharIo\Manifest vendor/phar-io/manifest/src/values/BundledComponentCollection.php @template-implements IteratorAggregate<int,BundledComponent>
BundledComponentCollectionIterator class PharIo\Manifest vendor/phar-io/manifest/src/values/BundledComponentCollectionIterator.php @template-implements Iterator<int,BundledComponent>
BundleEntityFormBase class Drupal\Core\Entity core/lib/Drupal/Core/Entity/BundleEntityFormBase.php Class BundleEntityFormBase is a base form for bundle config entities. 4 5
BundleEntityStorageInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/BundleEntityStorageInterface.php A storage that supports entities with bundle specific classes. 1

Pagination

  • First page
  • Previous page
  • …
  • Page 14
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • …
  • 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