Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
IntegrationTest | class | Drupal\Tests\statistics\Functional\Views | core/ |
Tests basic integration of views data from the statistics module. | ||||
IntegrationTest | class | Drupal\Tests\aggregator\Kernel\Views | core/ |
Tests basic integration of views data from the aggregator module. | ||||
IntegrityConstraintViolationException | class | Drupal\Core\Database | core/ |
Exception thrown if a query would violate an integrity constraint. | 4 | |||
Internal | class | Drupal\ckeditor\Plugin\CKEditorPlugin | core/ |
Defines the "internal" plugin (i.e. core plugins part of our CKEditor build). | ||||
InternalEntitiesTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Makes assertions about the JSON:API behavior for internal entities. | ||||
InternalPropertyTestFieldItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'Internal Property' entity test field type. | ||||
InternalTest | class | Drupal\Tests\ckeditor\Kernel\Plugin\CKEditorPlugin | core/ |
@coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\Internal | ||||
InternalTypedDataTestTrait | trait | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Trait that provides mocked typed data objects. | ||||
InternalUri | in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\menu_link_content\Plugin\migrate\process\LinkUri instead. |
class | Drupal\menu_link_content\Plugin\migrate\process\d7 | core/ |
Processes an internal uri into an 'internal:' or 'entity:' URI. | |||
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. | 16 | |||
InvalidDecoratedMethod | class | Drupal\Component\Plugin\Exception | core/ |
Exception thrown when a decorator's _call() method is triggered, but the decorated object does not contain the requested method. | ||||
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 | 15 | ||
InvalidQueryException | class | Drupal\Core\Database | core/ |
Exception thrown if a query would be invalid. | 2 | |||
InvalidUpdateHookTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that a module implementing hook_update_8000() causes an error to be displayed on update. | ||||
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. | 5 | |||
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 @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\aggregator\Functional\Hal | core/ |
@group hal | ||||
ItemHalJsonBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Hal | core/ |
@group hal | ||||
ItemHalJsonCookieTest | class | Drupal\Tests\aggregator\Functional\Hal | core/ |
@group hal | ||||
ItemHalJsonTestBase | abstract class | Drupal\Tests\aggregator\Functional\Hal | core/ |
ResourceTestBase for Item entity. | 4 | 1 | ||
ItemHalJsonTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\aggregator\Functional\Hal\ItemHalJsonTestBase instead. |
abstract class | Drupal\Tests\hal\Functional\EntityResource\Item | core/ |
||||
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 | ||||
ItemJsonBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
ItemJsonCookieTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
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. | 8 | 2 |
Pagination
- Previous page
- Page 88
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.