Classes, traits, and interfaces - 9.5.x - drupal
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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
InternalTest | class | Drupal\Tests\ckeditor\Kernel\Plugin\CKEditorPlugin | core/ |
@coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\Internal[[api-linebreak]] | ||||
InternalTypedDataTestTrait | trait | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Trait that provides mocked typed data objects. | ||||
InternalViolation | final class | Drupal\Core\Field | core/ |
Wraps a violation to allow arrayPropertyPath to be deprecated. | 1 | |||
InternalViolationTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\InternalViolation[[api-linebreak]] @group legacy | ||||
Interpolator | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Injects config values from an associative array into a string. | 2 | |||
InvalidConsumer | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
|||||
InvalidDataTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests handling of some invalid data. | ||||
InvalidDataTypeException | class | Drupal\Component\Serialization\Exception | core/ |
Exception thrown when a data type is invalid. | 1 | 18 | ||
InvalidDecoratedMethod | class | Drupal\Component\Plugin\Exception | core/ |
Thrown when a decorator's _call() method uses a method that does not exist. | ||||
InvalidDeriverException | class | Drupal\Component\Plugin\Exception | core/ |
Exception to be thrown if a plugin tries to use an invalid deriver. | 2 | |||
InvalidHandler | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
|||||
InvalidLibrariesExtendSpecificationException | class | Drupal\Core\Asset\Exception | core/ |
Defines a custom exception for an invalid libraries-extend specification. | 2 | |||
InvalidLibrariesOverrideSpecificationException | class | Drupal\Core\Asset\Exception | core/ |
Defines a custom exception if a definition refers to a non-existent library. | 3 | |||
InvalidLibraryFileException | class | Drupal\Core\Asset\Exception | core/ |
Defines an exception if the library file could not be parsed. | 2 | |||
InvalidLinkTemplateException | class | Drupal\Core\Entity\Exception | core/ |
Indicates that a link template does not follow the required pattern. | 2 | |||
InvalidLookupKeyException | class | Drupal\Core\Config\Entity\Query | core/ |
Exception thrown when a config entity uses an invalid lookup key. | ||||
InvalidMergeQueryException | class | Drupal\Core\Database\Query | core/ |
Exception thrown for merge queries that do not make semantic sense. | 1 | |||
InvalidPluginDefinitionException | class | Drupal\Component\Plugin\Exception | core/ |
Defines a class for invalid plugin definition exceptions. | 1 | 18 | ||
InvalidQueryException | class | Drupal\Core\Database | core/ |
Exception thrown if a query would be invalid. | 2 | |||
InvalidStreamWrapperException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a file's stream wrapper is invalid. | 10 | |||
InvalidUpdateHookTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that hook_update_8000() is disallowed. | ||||
InvalidVersionIdentifierException | class | Drupal\jsonapi\Revisions | core/ |
Used when a version ID is invalid. | ||||
InvokableUntrustedObject | class | Drupal\Tests\Core\Security | core/ |
|||||
InvokeCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for invoking an arbitrary jQuery method. | 6 | |||
IpAddressBlockingTest | class | Drupal\Tests\ban\Functional | core/ |
Tests IP address banning. | ||||
IpCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the IpCacheContext service, for "per IP address" caching. | 2 | |||
IsFrontPathCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines a cache context for whether the URL is the front page of the site. | 1 | 2 | ||
IsFrontPathCacheContextTest | class | Drupal\Tests\Core\Cache\Context | core/ |
@coversDefaultClass \Drupal\Core\Cache\Context\IsFrontPathCacheContext[[api-linebreak]] @group Cache | ||||
IsNullConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Null constraint. | ||||
IsNullConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Null constraint validator. | ||||
IsSuperUserCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the IsSuperUserCacheContext service, for "super user or not" caching. | 2 | |||
Item | class | Drupal\Core\Render\Element | core/ |
Provides a display-only form element with an optional title and description. | ||||
Item | class | Drupal\aggregator\Entity | core/ |
Defines the aggregator item entity class. | 12 | |||
ItemCacheTagsTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests the Item entity's cache tags. | ||||
ItemHalJsonAnonTest | class | Drupal\Tests\hal\Functional\aggregator | core/ |
@group hal @group legacy | ||||
ItemHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\aggregator | core/ |
@group hal @group legacy | ||||
ItemHalJsonCookieTest | class | Drupal\Tests\hal\Functional\aggregator | core/ |
@group hal @group legacy | ||||
ItemHalJsonTestBase | abstract class | Drupal\Tests\hal\Functional\aggregator | core/ |
ResourceTestBase for Item entity. | 3 | |||
ItemInterface | interface | Drupal\aggregator | core/ |
Provides an interface defining an aggregator item entity. | 1 | 1 | ||
ItemJsonAnonTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest @group legacy | ||||
ItemJsonBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest @group legacy | ||||
ItemJsonCookieTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest @group legacy | ||||
ItemLayoutFieldBlockTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Field blocks tests for the override layout. | ||||
ItemList | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
A generic list class. | 1 | 2 | ||
ItemResourceTestBase | abstract class | Drupal\Tests\aggregator\Functional\Rest | core/ |
ResourceTestBase for Item entity. @group legacy | 7 | 1 | ||
ItemsImporter | class | Drupal\aggregator | core/ |
Defines an importer of aggregator items. | 2 | |||
ItemsImporterInterface | interface | Drupal\aggregator | core/ |
Provides an interface defining an aggregator items importer. | 1 | |||
ItemsPerPageTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests that the views wizard can specify the number of items per page. | ||||
ItemStorage | class | Drupal\aggregator | core/ |
Defines the storage handler class for feed item entities. | ||||
ItemStorageInterface | interface | Drupal\aggregator | core/ |
Defines an interface for aggregator item entity storage classes. | 1 | 2 |
Pagination
- Previous page
- Page 89
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.