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 |
---|---|---|---|---|---|---|---|---|
NoMultilingualReviewPageTest | class | Drupal\Tests\forum\Functional\migrate_drupal\d6 | core/ |
Tests migrate upgrade review page. | ||||
NoMultilingualReviewPageTest | class | Drupal\Tests\forum\Functional\migrate_drupal\d7 | core/ |
Tests Drupal 7 upgrade without translations. | ||||
NoMultilingualReviewPageTest | class | Drupal\Tests\statistics\Functional\migrate_drupal\d6 | core/ |
Tests migrate upgrade review page. | ||||
NoMultilingualReviewPageTest | class | Drupal\Tests\statistics\Functional\migrate_drupal\d7 | core/ |
Tests Drupal 7 upgrade without translations. | ||||
NoMultilingualReviewPageTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d6 | core/ |
Tests migrate upgrade review page for Drupal 6 without translations. | ||||
NoMultilingualReviewPageTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d7 | core/ |
Tests Drupal 7 upgrade without translations. | ||||
NoMultilingualReviewPageTestBase | abstract class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Tests the upgrade review form without translations. | 9 | 9 | ||
NonAbstractFormStateDecoratorBase | class | Drupal\Tests\Core\Form | core/ |
Provides a non-abstract version of the class under test. | ||||
NonAnnotatedClass | class | Drupal\plugin_test\Plugin\plugin_test\fruit | core/ |
|||||
NonDefaultBlockAdminTest | class | Drupal\Tests\block\Functional | core/ |
Tests the block administration page for a non-default theme. | ||||
None | class | Drupal\views\Plugin\views\pager | core/ |
Plugin for views without pagers. | 1 | |||
None | class | Drupal\views\Plugin\views\argument_validator | core/ |
Do not validate the argument. | ||||
None | class | Drupal\views\Plugin\views\cache | core/ |
Caching plugin that provides no caching at all. | 1 | |||
None | class | Drupal\views\Plugin\views\access | core/ |
Access plugin that provides no access control at all. | ||||
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 | |||
NonPrintable | class | Drupal\KernelTests\Core\Theme | core/ |
|||||
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. | ||||
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/ |
@coversDefaultClass \Drupal\serialization\Normalizer\NormalizerBase[[api-linebreak]] @group serialization | ||||
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. | 2 | |||
NoSessionOpenTest | class | Drupal\Tests\Core\PageCache | core/ |
@coversDefaultClass \Drupal\Core\PageCache\RequestPolicy\NoSessionOpen[[api-linebreak]] @group PageCache | ||||
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. | ||||
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. | ||||
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 | 16 | ||
NullBackendFactory | class | Drupal\Core\Cache | core/ |
1 | 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. | ||||
NullDefaultFormTest | class | Drupal\Tests\contact\Functional\Update | core/ |
Tests the upgrade path for making 'default_form' in 'contact.settings' config to NULL. | ||||
NullDescriptionTest | class | Drupal\Tests\taxonomy\Functional\Update | core/ |
Tests the upgrade path for making vocabularies' description NULL. | ||||
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. |
Pagination
- Previous page
- Page 130
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.