Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| None | class | Drupal\views\Plugin\views\access | core/ |
Access plugin that provides no access control at all. | 1 | |||
| None | class | Drupal\views\Plugin\views\pager | core/ |
Plugin for views without pagers. | 1 | |||
| Nonexistent | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[NonexistentAttribute] | ||||
| NonInheritingBundleClass | class | Drupal\entity_test_bundle_class\Entity | core/ |
An invalid bundle class which does not inherit the main entity class. | 1 | |||
| NonPublicSchemaTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests schema API for non-public schema for the PostgreSQL driver. | ||||
| NonStableModulesTest | class | Drupal\Tests\system\Functional\Module | core/ |
Tests the installation of deprecated and experimental modules. | ||||
| NoOpStager | final class | Drupal\package_manager_bypass | core/ |
A composer-stager Stager implementation that does nothing, except logging. | 2 | |||
| NoOptimizeCacheContext | class | Drupal\Tests\Core\Cache\Context | core/ |
Non-optimizable context class. | ||||
| NoPreExistingSchemaUpdateTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tries to update a module which has no pre-existing schema. | ||||
| NoProfilesException | class | Drupal\Core\Installer\Exception | core/ |
Exception thrown if no installation profiles are available. | 1 | |||
| NormalInstallerServiceProvider | class | Drupal\Core\Installer | core/ |
Service provider for the installer environment. | 1 | |||
| NormalizerBase | abstract class | Drupal\serialization\Normalizer | core/ |
Base class for Normalizers. | 12 | 5 | ||
| NormalizerBase | abstract class | Drupal\jsonapi\Normalizer | core/ |
Base normalizer used in all JSON:API normalizers. | 10 | |||
| NormalizerBaseTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Tests Drupal\serialization\Normalizer\NormalizerBase. | ||||
| NormalizerTestBase | abstract class | Drupal\Tests\serialization\Kernel | core/ |
Helper base class to set up some test fields for serialization testing. | 2 | |||
| NoSerializationClassTestResource | class | Drupal\rest_test\Plugin\rest\resource | core/ |
Class used to test that serialization_class is optional. | ||||
| NoServerError | class | Drupal\Core\PageCache\ResponsePolicy | core/ |
A policy denying caching of a server error (HTTP 5xx) responses. | 2 | |||
| NoSessionOpen | class | Drupal\Core\PageCache\RequestPolicy | core/ |
A policy allowing delivery of cached pages when there is no session open. | 3 | |||
| NoSessionOpenTest | class | Drupal\Tests\Core\PageCache | core/ |
Tests Drupal\Core\PageCache\RequestPolicy\NoSessionOpen. | ||||
| NoSourceModule | class | Drupal\migration_source_module_test\Plugin\migrate\source | core/ |
A test source plugin without a source_module. | ||||
| NoSourceModule | class | Drupal\migration_provider_test\Plugin\migrate\source | core/ |
A test source plugin without a source_module. | ||||
| NoSourceModule | class | Drupal\migration_provider_test\Plugin\migrate\source | core/ |
A test source plugin without a source_module. | ||||
| NoSourcePluginDecorator | class | Drupal\migrate\Plugin | core/ |
Remove definitions which refer to a non-existing source plugin. | 1 | |||
| NoSourcePluginDecoratorTest | class | Drupal\Tests\migrate\Unit\Plugin | core/ |
Tests Drupal\migrate\Plugin\NoSourcePluginDecorator. | ||||
| NotATestClass | class | Drupal\Tests\Core\Foo | core/ |
|||||
| NotNullConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
NotNull constraint. | 1 | |||
| NotNullConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
NotNull constraint validator. | ||||
| NotRegularDirectoryException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a target is not a regular directory (e.g. a file). | 1 | |||
| NotRegularFileException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a target is not a regular file (e.g. a directory). | 2 | |||
| NoType | class | Drupal\action_test\Plugin\Action | core/ |
Provides an operation with no type specified. | ||||
| NoUniqueFieldException | class | Drupal\Core\Database\Query | core/ |
Exception thrown if an upsert query doesn't specify a unique field. | ||||
| NullableSerializedItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'nullable_serialized_item_test' entity field type. | ||||
| NullArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler that ignores the argument. | ||||
| NullBackend | class | Drupal\Core\Cache | core/ |
Defines a stub cache implementation. | 1 | 20 | ||
| NullBackendFactory | class | Drupal\Core\Cache | core/ |
Defines a stub cache backend factory. | 2 | 4 | ||
| NullBackendTest | class | Drupal\Tests\Core\Cache | core/ |
Tests the cache NullBackend. | ||||
| NullCoalesce | class | Drupal\migrate\Plugin\migrate\process | core/ |
Provides a Null Coalesce process plugin. | 1 | |||
| NullCoalesceTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the null_coalesce process plugin. | ||||
| NullDestination | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides null destination plugin. | ||||
| NullFileCache | class | Drupal\Component\FileCache | core/ |
Null implementation for the file cache. | 1 | |||
| NullGenerator | class | Drupal\Core\Routing | core/ |
No-op implementation of a URL Generator, needed for backward compatibility. | ||||
| NullIdMap | class | Drupal\migrate\Plugin\migrate\id_map | core/ |
Defines the null ID map implementation. | ||||
| NullIncludedData | class | Drupal\jsonapi\JsonApiResource | core/ |
Use when there are no included resources but a Data object is required. | 8 | |||
| NullLockBackend | class | Drupal\Core\Lock | core/ |
Defines a Null lock backend. | 10 | |||
| NullMatcherDumper | class | Drupal\Core\Routing | core/ |
Does not dump Route information. | ||||
| NullNormalizer | class | Drupal\serialization\Normalizer | core/ |
Null normalizer. | 1 | 2 | ||
| NullNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Tests Drupal\serialization\Normalizer\NullNormalizer. | ||||
| NullPathProcessorManager | class | Drupal\Core\PathProcessor | core/ |
Provides a null implementation of the path processor manager. | ||||
| NullRouteMatch | class | Drupal\Core\Routing | core/ |
Stub implementation of RouteMatchInterface for when there's no matched route. | 2 | |||
| NullStorage | class | Drupal\Core\Config | core/ |
Defines a stub storage. | 7 |
Pagination
- Previous page
- Page 143
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.