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 |
---|---|---|---|---|---|---|---|---|
EventAlreadyAssignedException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
EventBase | class | Drupal\migrate\Event | core/ |
2 | 1 | |||
EventCollection | final class | PHPUnit\Event | vendor/ |
@template-implements IteratorAggregate<int, Event> | ||||
EventCollectionIterator | final class | PHPUnit\Event | vendor/ |
@template-implements Iterator<int, Event> | ||||
EventDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
EventDispatcher | class | Composer\EventDispatcher | vendor/ |
The Event Dispatcher. | 13 | |||
EventDispatcher | class | Symfony\Component\EventDispatcher | vendor/ |
The EventDispatcherInterface is the central point of Symfony's event listener system. | 1 | 2 | ||
EventDispatcherInterface | interface | Symfony\Component\EventDispatcher | vendor/ |
The EventDispatcherInterface is the central point of Symfony's event listener system. Listeners are registered on the manager and events are dispatched through the manager. | 3 | 5 | ||
EventDispatcherInterface | interface | Psr\EventDispatcher | vendor/ |
Defines a dispatcher for events. | 1 | 9 | ||
EventDispatcherInterface | interface | Symfony\Contracts\EventDispatcher | vendor/ |
Allows providing hooks on domain-specific lifecycles by dispatching events. | 1 | 41 | ||
EventDriver | final class | Revolt\EventLoop\Driver | vendor/ |
1 | ||||
EvenTest | class | Twig\Node\Expression\Test | vendor/ |
Checks if a number is even. | 1 | |||
EventException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown by the database event API. | 1 | |||
EventFacadeIsSealedException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 13 | |||
EventFacadeSealed | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
EventFacadeSealedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
EventHandler | interface | Masterminds\HTML5\Parser | vendor/ |
Standard events for HTML5. | 1 | |||
EventInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
1 | 1 | |||
EventLogger | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
EventLogger | final class | PHPUnit\Logging | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
EventLoggerInterface | interface | OpenTelemetry\API\Logs | vendor/ |
2 | 3 | |||
EventLoggerProvider | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
EventLoggerProviderFactory | class | OpenTelemetry\SDK\Logs | vendor/ |
1 | ||||
EventLoggerProviderInterface | interface | OpenTelemetry\API\Logs | vendor/ |
1 | 6 | |||
EventLoggerProviderInterface | interface | OpenTelemetry\SDK\Logs | vendor/ |
2 | ||||
EventLoop | final class | Revolt | vendor/ |
Accessor to allow global access to the event loop. | ||||
EventsEmitter | class | Peast\Syntax | vendor/ |
Events emitter class. An instance of this class is used by Parser and Scanner to emit events and attach listeners to them | ||||
EventSubscriberInterface | interface | Composer\EventDispatcher | vendor/ |
An EventSubscriber knows which events it is interested in. | 7 | 8 | ||
EventSubscriberInterface | interface | Symfony\Component\EventDispatcher | vendor/ |
An EventSubscriber knows itself what events it is interested in. If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes {@link getSubscribedEvents} and registers the subscriber as a listener for all returned events. | 155 | 157 | ||
ExactMatch | abstract class | PHP_CodeSniffer\Filters | vendor/ |
2 | ||||
ExactNamedSelector | class | Behat\Mink\Selector | vendor/ |
Exact match selector engine. Like the Named selector engine but ignores partial matches. | ||||
ExactValueToken | class | Prophecy\Argument\Token | vendor/ |
Exact value token. | ||||
ExactVersionConstraint | class | PharIo\Version | vendor/ |
|||||
Example | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {example tag in a Docblock. | 1 | |||
ExampleFinder | class | phpDocumentor\Reflection\DocBlock | vendor/ |
Class used to find an example file's location based on a given ExampleDescriptor. | ||||
Exception | abstract class | WebDriver | vendor/ |
WebDriver\Exception class | 45 | 48 | ||
Exception | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
Exception | interface | Prophecy\Exception | vendor/ |
Core Prophecy exception interface. All Prophecy exceptions implement it. | 4 | 3 | ||
Exception | abstract class | Behat\Mink\Exception | vendor/ |
Mink base exception class. | 4 | |||
Exception | interface | PHPUnit\Event | vendor/ |
17 | 4 | |||
Exception | interface | PHPUnit\Metadata | vendor/ |
2 | ||||
Exception | interface | SebastianBergmann\Diff | vendor/ |
1 | ||||
Exception | interface | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 14 | |||
Exception | class | PHPUnit\Framework | vendor/ |
Base class for all PHPUnit Framework exceptions. | 36 | 10 | ||
Exception | interface | PharIo\Manifest | vendor/ |
12 | 1 | |||
Exception | interface | Http\Discovery | vendor/ |
An interface implemented by all discovery related exceptions. | 7 | 5 | ||
Exception | interface | SebastianBergmann\LinesOfCode | vendor/ |
3 | ||||
Exception | interface | SebastianBergmann\Invoker | vendor/ |
2 | ||||
Exception | interface | SebastianBergmann\Comparator | vendor/ |
1 | ||||
Exception | class | Peast\Selector | vendor/ |
Selector exception class. Syntax errors in selectors are thrown using this exception class. | 1 |