Classes, traits, and interfaces - 10.3.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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| InvalidDataTypeException | class | Drupal\Component\Serialization\Exception | core/ |
Exception thrown when a data type is invalid. | 1 | 20 | ||
| 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 | |||
| InvalidEntityException | final class | Drupal\Core\DefaultContent | core/ |
Thrown if an entity being imported has validation errors. | 1 | |||
| 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 | 21 | ||
| 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. | 11 | |||
| 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 | |||
| 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. | ||||
| 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 | 3 | ||
| ItemsPerPageTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests that the views wizard can specify the number of items per page. | ||||
| JavascriptDeprecationTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests Javascript deprecation notices. | ||||
| JavascriptErrorsSuppressionTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests that Drupal.throwError can be suppressed to allow a test to pass. | ||||
| JavascriptErrorsTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests that Drupal.throwError will cause a test failure. | ||||
| JavascriptGetDrupalSettingsTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests Drupal settings retrieval in WebDriverTestBase tests. | ||||
| JavascriptStatesForm | class | Drupal\form_test\Form | core/ |
Builds a simple form to test states. | 1 | |||
| JavascriptStatesTest | class | Drupal\FunctionalJavascriptTests\Core\Form | core/ |
Tests the state of elements based on another elements. | ||||
| JoinPluginBase | class | Drupal\views\Plugin\views\join | core/ |
Represents a join and creates the SQL necessary to implement the join. | 5 | 4 | ||
| JoinPluginInterface | interface | Drupal\views\Plugin\views\join | core/ |
Represents a join and creates the SQL necessary to implement the join. | 1 | |||
| JoinTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the join plugin. | ||||
| JoinTest | class | Drupal\views_test_data\Plugin\views\join | core/ |
Defines a join test plugin. | 1 | |||
| JqueryUiLibraryAssetsTest | class | Drupal\FunctionalTests\Libraries | core/ |
Tests the loading of jQuery UI CSS and JS assets. | ||||
| JqueryUiTestAssetsController | class | Drupal\jqueryui_library_assets_test\Controller | core/ |
Controller for testing jQuery UI asset loading order. | ||||
| JsAssetController | class | Drupal\system\Controller | core/ |
Defines a controller to serve Javascript aggregates. | ||||
| JsCollectionGrouper | class | Drupal\Core\Asset | core/ |
Groups JavaScript assets. | 2 | |||
| JsCollectionOptimizer | in drupal:10.1.0 and is removed from drupal:11.0.0. Instead use \Drupal\Core\Asset\JsCollectionOptimizerLazy. |
class | Drupal\Core\Asset | core/ |
Optimizes JavaScript assets. | |||
| JsCollectionOptimizerLazy | class | Drupal\Core\Asset | core/ |
Optimizes JavaScript assets. | 2 | |||
| JsCollectionRenderer | class | Drupal\Core\Asset | core/ |
Renders JavaScript assets. | 2 | |||
| JsDeprecationTestController | class | Drupal\js_deprecation_test\Controller | core/ |
Test Controller to show message links. | ||||
| JsErrorsTestController | class | Drupal\js_errors_test\Controller | core/ |
Test Controller loading js_errors_test/errors_test library. | ||||
| JSInteractionTest | class | Drupal\FunctionalJavascriptTests\Tests | core/ |
Tests fault tolerant interactions. | ||||
| JSInteractionTestForm | class | Drupal\js_interaction_test\Controller | core/ |
Controller for testing fault tolerant JavaScript interactions. | 1 | |||
| JsMessageTest | class | Drupal\FunctionalJavascriptTests\Core | core/ |
Tests core/drupal.message library. | 1 | 1 |
Pagination
- Previous page
- Page 95
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.