Classes, traits, and interfaces - main - drupal

Primary tabs

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
StyleFieldsTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleFieldsTest.php Tests fields style functionality.
StyleGridResponsiveTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleGridResponsiveTest.php Tests the grid_responsive style plugin.
StyleGridTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleGridTest.php Tests the grid style plugin.
StyleHtmlListTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php Tests the HTML list style plugin.
StyleMappingTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleMappingTest.php Tests mapping style functionality.
StylePluginBase abstract class Drupal\views\Plugin\views\style core/modules/views/src/Plugin/views/style/StylePluginBase.php Base class for views style plugins. 13 6 1
StylePluginTest class Drupal\Tests\ckeditor5\Unit core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style.
StyleSensibleElementConstraint class Drupal\ckeditor5\Plugin\Validation\Constraint core/modules/ckeditor5/src/Plugin/Validation/Constraint/StyleSensibleElementConstraint.php Styles can only be specified for HTML5 tags and extra classes.
StyleSensibleElementConstraintValidator class Drupal\ckeditor5\Plugin\Validation\Constraint core/modules/ckeditor5/src/Plugin/Validation/Constraint/StyleSensibleElementConstraintValidator.php Styles can only be specified for HTML5 tags and extra classes.
StyleSerializerEntityTest class Drupal\Tests\rest\Functional\Views core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php Tests the serializer style plugin.
StyleSerializerKernelTest class Drupal\Tests\rest\Kernel\Views core/modules/rest/tests/src/Kernel/Views/StyleSerializerKernelTest.php Tests Drupal\rest\Plugin\views\style\Serializer.
StyleSerializerTest class Drupal\Tests\rest\Functional\Views core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php Tests the serializer style plugin.
StyleSummaryTest class Drupal\Tests\views\Functional\Plugin core/modules/views/tests/src/Functional/Plugin/StyleSummaryTest.php Tests the summary style plugin.
StyleTableTest class Drupal\Tests\views\Functional\Plugin core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php Tests the table style views plugin.
StyleTableTest class Drupal\Tests\views_ui\Functional core/modules/views_ui/tests/src/Functional/StyleTableTest.php Tests the UI of views when using the table style.
StyleTableUnitTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php Tests the table style plugin.
StyleTemplateTest class Drupal\views_test_data\Plugin\views\style core/modules/views/tests/modules/views_test_data/src/Plugin/views/style/StyleTemplateTest.php Provides a general test style template plugin.
StyleTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleTest.php Tests general style functionality.
StyleTest class Drupal\views_test_data\Plugin\views\style core/modules/views/tests/modules/views_test_data/src/Plugin/views/style/StyleTest.php Provides a general test style plugin. 1
StyleTest class Drupal\Tests\ckeditor5\FunctionalJavascript core/modules/ckeditor5/tests/src/FunctionalJavascript/StyleTest.php Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style.
StyleTestBase abstract class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php Tests some general style plugin related functionality. 2
StyleUITest class Drupal\Tests\views_ui\Functional core/modules/views_ui/tests/src/Functional/StyleUITest.php Tests the UI of style plugins.
StyleUnformattedTest class Drupal\Tests\views\Kernel\Plugin core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php Tests unformatted style functionality.
SubDirAttribute final class Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute\SubDir core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Attribute/SubDir/SubDirAttribute.php #[\Attribute]
SubformState class Drupal\Core\Form core/lib/Drupal/Core/Form/SubformState.php Stores information about the state of a subform. 17
SubformStateInterface interface Drupal\Core\Form core/lib/Drupal/Core/Form/SubformStateInterface.php Stores information about the state of a subform. 1 6
SubformStateTest class Drupal\Tests\Core\Form core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Tests Drupal\Core\Form\SubformState.
Submit class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Submit.php Provides a form submit button. 1
SubProcess class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/SubProcess.php Runs an array of arrays through its own process pipeline. 2
SubProcessTest class Drupal\Tests\migrate\Unit\process core/modules/migrate/tests/src/Unit/process/SubProcessTest.php Tests the sub_process process plugin.
SubProcessWithSkipTest class Drupal\Tests\migrate\Kernel\process core/modules/migrate/tests/src/Kernel/process/SubProcessWithSkipTest.php Tests process pipelines when a sub_process skips a row or process.
Subquery class Drupal\views\Plugin\views\join core/modules/views/src/Plugin/views/join/Subquery.php Join handler for relationships that join with a subquery as the left field.
SubscriberBase abstract class Drupal\TestTools\Extension\HtmlLogging core/tests/Drupal/TestTools/Extension/HtmlLogging/SubscriberBase.php Base class for PHPUnit event subscribers related to HTML logging. 2
Substr class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/Substr.php Returns a substring of the input value. 1
SubstrTest class Drupal\Tests\migrate\Unit\process core/modules/migrate/tests/src/Unit/process/SubstrTest.php Tests the substr plugin.
SummaryLengthTest class Drupal\Tests\node\Kernel core/modules/node/tests/src/Kernel/SummaryLengthTest.php Tests summary length.
SupernovaGenerator class Drupal\help_test core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php Implements a URL generator which always thrown an exception. 1
SuperUserAccessInstallTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php Tests superuser access and the installer.
SuperUserAccessPolicy final class Drupal\Core\Session core/lib/Drupal/Core/Session/SuperUserAccessPolicy.php Grants user 1 an all access pass. 1 2
SuperUserAccessPolicyPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/SuperUserAccessPolicyPass.php Removes the super user access policy when toggled off. 2
SuperUserAccessPolicyTest class Drupal\Tests\Core\Session core/tests/Drupal/Tests/Core/Session/SuperUserAccessPolicyTest.php Tests Drupal\Core\Session\SuperUserAccessPolicy.
SuperUserPermissionsTest class Drupal\KernelTests\Core\Session core/tests/Drupal/KernelTests/Core/Session/SuperUserPermissionsTest.php Test case for getting all permissions as a super user.
SupportAwareSectionStorageInterface interface Drupal\layout_builder core/modules/layout_builder/src/SupportAwareSectionStorageInterface.php Interface for section storage that knows whether it supports a view mode. 5 4
SupportAwareSectionStorageManagerInterface interface Drupal\layout_builder\SectionStorage core/modules/layout_builder/src/SectionStorage/SupportAwareSectionStorageManagerInterface.php Interface for section manager that knows whether it supports view modes. 1 1
SupportedReleaseValidator final class Drupal\package_manager\Validator core/modules/package_manager/src/Validator/SupportedReleaseValidator.php Validates that updated projects are secure and supported. 2
SupportedReleaseValidatorTest class Drupal\Tests\package_manager\Kernel core/modules/package_manager/tests/src/Kernel/SupportedReleaseValidatorTest.php Tests Drupal\package_manager\Validator\SupportedReleaseValidator.
SupportsTemporaryTablesInterface interface Drupal\Core\Database core/lib/Drupal/Core/Database/SupportsTemporaryTablesInterface.php Adds support for temporary tables. 3 3
SuspendQueueException class Drupal\Core\Queue core/lib/Drupal/Core/Queue/SuspendQueueException.php Exception class to throw to indicate that a cron queue should be skipped. 4
SvgExtractor class Drupal\Core\Theme\Plugin\IconExtractor core/lib/Drupal/Core/Theme/Plugin/IconExtractor/SvgExtractor.php Plugin implementation of the icon_extractor. 1
SvgExtractorTest class Drupal\Tests\Core\Theme\Icon\Plugin core/tests/Drupal/Tests/Core/Theme/Icon/Plugin/SvgExtractorTest.php Tests Drupal\Core\Theme\Plugin\IconExtractor\SvgExtractor.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.