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 |
|---|---|---|---|---|---|---|---|---|
| StreamCapturer | class | Drupal\Tests | core/ |
Captures output to a stream and stores it for retrieval. | ||||
| StreamFileUploaderTest | class | Drupal\Tests\file\Kernel\Upload | core/ |
Tests the stream file uploader. | ||||
| StreamWrapperInterface | interface | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal stream wrapper extension. | 2 | 14 | ||
| StreamWrapperManager | class | Drupal\Core\StreamWrapper | core/ |
Provides a StreamWrapper manager. | 21 | 2 | ||
| StreamWrapperManagerInterface | interface | Drupal\Core\StreamWrapper | core/ |
Provides a StreamWrapper manager. | 1 | 25 | ||
| StreamWrapperManagerTest | class | Drupal\KernelTests\Core\StreamWrapper | core/ |
Tests Drupal\Core\StreamWrapper\StreamWrapperManager. | ||||
| StreamWrapperTest | class | Drupal\KernelTests\Core\File | core/ |
Tests stream wrapper functions. | ||||
| StringArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for string. | 2 | 2 | ||
| StringBase | abstract class | Drupal\locale | core/ |
Defines the locale string base class. | 2 | 1 | ||
| StringBaseTest | class | Drupal\Tests\locale\Unit | core/ |
Tests Drupal\locale\StringBase. | ||||
| StringData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The string data type. | 7 | 10 | 1 | |
| StringDatabaseStorage | class | Drupal\locale | core/ |
Defines a class to store localized strings in the database. | 2 | |||
| StringEqualsConcatenatedValuesConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks a string consists of specific values found in the mapping. | 1 | |||
| StringEqualsConcatenatedValuesConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the StringEqualsConcatenatedValues constraint. | 1 | |||
| StringEqualsConcatenatedValuesConstraintValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests the StringEqualsConcatenatedValues validator. | ||||
| StringFieldTest | class | Drupal\Tests\field\Functional\FunctionalString | core/ |
Tests the creation of string fields. | 1 | 1 | ||
| StringFilter | class | Drupal\views\Plugin\views\filter | core/ |
Basic textfield filter to handle string filtering commands. | 1 | |||
| StringFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'string' formatter. | 2 | 2 | ||
| StringFormatterTest | final class | Drupal\Tests\field\Unit\Plugin\Field\FieldFormatter | core/ |
Tests the string field formatter. | ||||
| StringFormatterTest | class | Drupal\Tests\field\Kernel\KernelString | core/ |
Tests the creation of text fields. | ||||
| StringIdEntityTest | class | Drupal\migrate_entity_test\Entity | core/ |
Defines a content entity type that has a string ID. | 1 | |||
| StringInterface | interface | Drupal\locale | core/ |
Defines the locale string interface. | 1 | 3 | ||
| StringInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for strings. | 2 | 8 | ||
| StringItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'string' entity field type. | 8 | 8 | ||
| StringItemBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Base class for string field types. | 2 | |||
| StringItemTest | class | Drupal\Tests\Core\Field | core/ |
Defines a test for the StringItem field-type. | ||||
| StringListField | class | Drupal\options\Plugin\views\argument | core/ |
Argument handler for list field to show the human readable name in summary. | ||||
| StringLoader | class | Drupal\Core\Template\Loader | core/ |
Loads string templates, also known as inline templates. | 3 | 2 | ||
| StringLongItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'string_long' field type. | ||||
| StringNormalizer | class | Drupal\jsonapi_test_data_type\Normalizer | core/ |
Normalizes string data weirdly: replaces 'super' with 'NOT' and vice versa. | 2 | |||
| StringNormalizer | class | Drupal\jsonapi_test_field_type\Normalizer | core/ |
Normalizes string fields weirdly: replaces 'super' with 'NOT' and vice versa. | 2 | |||
| StringObject | class | Drupal\Tests\Component\Assertion | core/ |
Quick class for testing for objects with __toString. | ||||
| StringStorageException | class | Drupal\locale | core/ |
Defines an exception thrown when storage operations fail. | 1 | |||
| StringStorageInterface | interface | Drupal\locale | core/ |
Defines the locale string storage interface. | 1 | 5 | ||
| StringTextareaWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'string_textarea' widget. | 1 | 1 | ||
| StringTextfieldWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'string_textfield' widget. | 2 | 2 | ||
| StringTranslationTrait | trait | Drupal\Core\StringTranslation | core/ |
Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. | 451 | |||
| StringTranslationTraitTest | class | Drupal\Tests\Core\StringTranslation | core/ |
Tests Drupal\Core\StringTranslation\StringTranslationTrait. | ||||
| StubCondition | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of core Condition class for testing purposes. | 1 | |||
| StubConfigEntity | class | Drupal\Tests\Core\Config\Entity | core/ |
A stub extending ConfigEntityBase for testing purposes. | 1 | |||
| StubConnection | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of the abstract Connection class for testing purposes. | 6 | |||
| StubControllerBase | class | Drupal\Tests\Core\Controller | core/ |
Stubs ControllerBase. | ||||
| StubEntityBase | class | Drupal\Tests\Core\Entity | core/ |
A stub base entity for testing purposes. | 1 | 1 | ||
| StubEntityHandlerBase | class | Drupal\Tests\Core\Entity | core/ |
A stub base entity handler for testing purposes. | ||||
| StubEntityStorageBase | class | Drupal\Tests\Core\Entity | core/ |
A stub base entity storage for testing purposes. | ||||
| StubFallbackPluginManager | class | Drupal\Tests\Component\Plugin | core/ |
Stubs \Drupal\Component\Plugin\FallbackPluginManagerInterface. | ||||
| StubFieldItemBase | class | Drupal\Tests\Core\Entity | core/ |
A stub field item base entity for testing purposes. | ||||
| StubForm | class | Drupal\Tests\system\Functional\Form | core/ |
Provides a stub form for testing purposes. | ||||
| StubFormSubmitter | class | Drupal\Tests\Core\Form | core/ |
Provides a stub FormSubmitter that doesn't depend on batch_get(). | ||||
| StubLockBackendAbstract | class | Drupal\Tests\Core\Lock | core/ |
A stub of the abstract LockBackendAbstract class for testing purposes. |
Pagination
- Previous page
- Page 184
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.