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 |
---|---|---|---|---|---|---|---|---|
MediaLibraryWidget | class | Drupal\media_library\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'media_library_widget' widget. | ||||
MediaListBuilder | class | Drupal\media | core/ |
Provides a listing of media items. | 1 | |||
MediaMappingsConstraint | class | Drupal\media\Plugin\Validation\Constraint | core/ |
Validates media mappings. | ||||
MediaMappingsConstraintValidator | class | Drupal\media\Plugin\Validation\Constraint | core/ |
Validates media mappings. | ||||
MediaPermissions | class | Drupal\media | core/ |
Provides dynamic permissions for each media type. | ||||
MediaRevision | class | Drupal\media\Plugin\views\wizard | core/ |
Provides Views creation wizard for Media revisions. | ||||
MediaRouteProvider | class | Drupal\media\Routing | core/ |
Provides HTML routes for media pages. | 1 | |||
MediaSelection | class | Drupal\media\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the media entity type. | ||||
MediaSettingsForm | class | Drupal\media\Form | core/ |
Provides a form to configure Media settings. | 1 | |||
MediaSource | class | Drupal\media\Attribute | core/ |
Defines a MediaSource attribute. | 1 | 5 | ||
MediaSource | class | Drupal\media\Annotation | core/ |
Defines a media source plugin annotation object. | ||||
MediaSourceBase | abstract class | Drupal\media | core/ |
Base implementation of media source plugin. | 2 | 2 | ||
MediaSourceEntityConstraintsInterface | interface | Drupal\media | core/ |
Defines an interface for a media source with entity constraints. | 1 | |||
MediaSourceFieldConstraintsInterface | interface | Drupal\media | core/ |
Defines an interface for a media source with source field constraints. | 1 | 2 | ||
MediaSourceInterface | interface | Drupal\media | core/ |
Defines the interface for media source plugins. | 3 | 1 | ||
MediaSourceManager | class | Drupal\media | core/ |
Manages media source plugins. | 2 | |||
MediaStorage | class | Drupal\media | core/ |
Defines the storage handler class for media. | 1 | |||
MediaThumbnailFormatter | class | Drupal\media\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'media_thumbnail' formatter. | ||||
MediaType | class | Drupal\media\Entity | core/ |
Defines the Media type configuration entity. | 6 | |||
MediaTypeAccessControlHandler | class | Drupal\media | core/ |
Defines the access control handler for the "Media Type" entity type. | 1 | |||
MediaTypeDeleteConfirmForm | class | Drupal\media\Form | core/ |
Provides a form for media type deletion. | 1 | |||
MediaTypeForm | class | Drupal\media | core/ |
Form controller for media type forms. | 2 | |||
MediaTypeInterface | interface | Drupal\media | core/ |
Provides an interface defining a media type entity. | 1 | 10 | ||
MediaTypeListBuilder | class | Drupal\media | core/ |
Provides a listing of media types. | 1 | |||
MediaViewsData | class | Drupal\media | core/ |
Provides the Views data for the media entity type. | 1 | |||
MediaWikiInstaller | class | Composer\Installers | vendor/ |
|||||
Medium | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
Medium | final class | SebastianBergmann\CodeCoverage\Test\TestSize | vendor/ |
@psalm-immutable | ||||
Medium | final class | PHPUnit\Framework\TestSize | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MemberExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a member expression. For example: foo.bar | ||||
MemberMetadata | abstract class | Symfony\Component\Validator\Mapping | vendor/ |
Stores all metadata needed for validating a class property. | 2 | 1 | ||
MemberVarScopeSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope | vendor/ |
|||||
MemberVarSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
MemcachedCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
@author Jan Schädlich <jan.schaedlich@sensiolabs.de> | ||||
MemcachedSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Memcached based session storage handler based on the Memcached class provided by the PHP memcached extension. | ||||
MemcachedStore | class | Symfony\Component\Lock\Store | vendor/ |
MemcachedStore is a PersistingStoreInterface implementation using Memcached as store engine. | ||||
Memory | class | Drupal\Core\Queue | core/ |
Static queue implementation. | 1 | |||
MemoryBackend | class | Drupal\Core\Cache | core/ |
Defines a memory cache implementation. | 2 | 2 | ||
MemoryBackend | class | Drupal\Core\Flood | core/ |
Defines the memory flood backend. This is used for testing. | ||||
MemoryBackendFactory | class | Drupal\Core\Cache | core/ |
1 | ||||
MemoryCache | class | Drupal\Core\Cache\MemoryCache | core/ |
Defines a memory cache implementation. | 2 | |||
MemoryCacheFactory | class | Drupal\Core\Cache\MemoryCache | core/ |
|||||
MemoryCacheInterface | interface | Drupal\Core\Cache\MemoryCache | core/ |
Defines an interface for memory cache implementations. | 1 | 12 | 2 | |
MemoryCounterBackend | class | Drupal\Core\Cache | core/ |
Defines a memory cache implementation that counts set and get calls. | ||||
MemoryCounterBackendFactory | class | Drupal\Core\Cache | core/ |
|||||
MemoryDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
MemoryEfficientLongestCommonSubsequenceCalculator | final class | SebastianBergmann\Diff | vendor/ |
|||||
MemoryMeter | interface | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MemoryStorage | class | Drupal\Core\Config | core/ |
Provides an in memory configuration storage. | ||||
MemoryStorage | class | Drupal\Core\KeyValueStore | core/ |
Defines a default key/value store implementation. |