Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
BookRemoveForm | class | Drupal\book\Form | core/ |
Remove form for book module. | 1 | |||
BookRemoveForm | class | Drupal\book\Form | core/ |
Remove form for book module. | 1 | |||
BookRemoveForm | class | Drupal\book\Form | core/ |
Remove form for book module. | 1 | |||
BookSettingsForm | class | Drupal\book\Form | core/ |
Configure book settings for this site. | 1 | |||
BookSettingsForm | class | Drupal\book\Form | core/ |
Configure book settings for this site. | 1 | |||
BookSettingsForm | class | Drupal\book\Form | core/ |
Configure book settings for this site. | 1 | |||
BookTest | class | Drupal\Tests\book\Kernel\Plugin\migrate\source | core/ |
@covers \Drupal\book\Plugin\migrate\source\Book[[api-linebreak]] @group book | ||||
BookTest | class | Drupal\Tests\book\Functional | core/ |
Create a book, add pages, and test book interface. | ||||
BookTestTrait | trait | Drupal\Tests\book\Functional | core/ |
Provides common functionality for Book test classes. | ||||
BookUninstallTest | class | Drupal\Tests\book\Kernel | core/ |
Tests that the Book module cannot be uninstalled if books exist. | ||||
BookUninstallValidator | class | Drupal\book\ProxyClass | core/ |
Provides a proxy class for \Drupal\book\BookUninstallValidator. | ||||
BookUninstallValidator | class | Drupal\book | core/ |
Prevents book module from being uninstalled under certain conditions. | 2 | |||
BookUninstallValidator | class | Drupal\book | core/ |
Prevents book module from being uninstalled under certain conditions. | 2 | |||
BookUninstallValidator | class | Drupal\book | core/ |
Prevents book module from being uninstalled under certain conditions. | 2 | |||
BookUninstallValidatorTest | class | Drupal\Tests\book\Unit | core/ |
@coversDefaultClass \Drupal\book\BookUninstallValidator[[api-linebreak]] @group book | ||||
Boolean | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for booleans. | ||||
BooleanCheckboxWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'boolean_checkbox' widget. | ||||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanFieldTest | class | Drupal\Tests\field\Functional\Boolean | core/ |
Tests boolean field functionality. | ||||
BooleanFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'boolean' formatter. | ||||
BooleanFormatterSettingsTest | class | Drupal\Tests\field\FunctionalJavascript\Boolean | core/ |
Tests the Boolean field formatter settings. | ||||
BooleanFormatterSettingsTest | class | Drupal\Tests\field\Functional\Boolean | core/ |
Tests the Boolean field formatter settings. | ||||
BooleanFormatterTest | class | Drupal\Tests\field\Kernel\Boolean | core/ |
Tests the boolean formatter. | ||||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItemNormalizer | class | Drupal\test_fieldtype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean fields weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
BooleanItemNormalizer | class | Drupal\test_fieldtype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean fields weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
BooleanItemNormalizer | class | Drupal\test_fieldtype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean fields weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
BooleanItemTest | class | Drupal\Tests\field\Kernel\Boolean | core/ |
Tests the new entity API for the boolean field type. | ||||
BooleanNormalizer | class | Drupal\test_datatype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean data weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
BooleanNormalizer | class | Drupal\test_datatype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean data weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
BooleanNormalizer | class | Drupal\test_datatype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean data weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
BooleanOperator | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | 3 | 2 | ||
BooleanOperator | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | 3 | 2 | ||
BooleanOperator | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | 3 | 2 |
Pagination
- Previous page
- Page 32
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.