Classes, traits, and interfaces - 9.5.x - 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 1523

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ImageOnTranslatedEntityTest class Drupal\Tests\image\Functional core/modules/image/tests/src/Functional/ImageOnTranslatedEntityTest.php Uploads images to translated nodes.
ImageResize class Drupal\ckeditor5\Plugin\CKEditor5Plugin core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ImageResize.php CKEditor 5 ImageResize plugin. 1
ImageStyle class Drupal\image\Entity core/modules/image/src/Entity/ImageStyle.php Defines an image style configuration entity. 33
ImageStyleAddForm class Drupal\image\Form core/modules/image/src/Form/ImageStyleAddForm.php Controller for image style addition forms.
ImageStyleCustomStreamWrappersTest class Drupal\Tests\image\Kernel core/modules/image/tests/src/Kernel/ImageStyleCustomStreamWrappersTest.php Tests derivative generation with source images using stream wrappers.
ImageStyleDeleteForm class Drupal\image\Form core/modules/image/src/Form/ImageStyleDeleteForm.php Creates a form to delete an image style.
ImageStyleDeleteTest class Drupal\Tests\image\Functional core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php Tests image style deletion using the UI.
ImageStyleDownloadController class Drupal\image\Controller core/modules/image/src/Controller/ImageStyleDownloadController.php Defines a controller to serve image styles.
ImageStyleEditForm class Drupal\image\Form core/modules/image/src/Form/ImageStyleEditForm.php Controller for image style edit form.
ImageStyleFlushForm class Drupal\image\Form core/modules/image/src/Form/ImageStyleFlushForm.php Form controller for image style flush.
ImageStyleFlushTest class Drupal\Tests\image\Functional core/modules/image/tests/src/Functional/ImageStyleFlushTest.php Tests flushing of image styles.
ImageStyleFormBase abstract class Drupal\image\Form core/modules/image/src/Form/ImageStyleFormBase.php Base form for image style add and edit forms. 2
ImageStyleHalJsonAnonTest class Drupal\Tests\hal\Functional\image core/modules/hal/tests/src/Functional/image/ImageStyleHalJsonAnonTest.php @group hal @group legacy
ImageStyleHalJsonBasicAuthTest class Drupal\Tests\hal\Functional\image core/modules/hal/tests/src/Functional/image/ImageStyleHalJsonBasicAuthTest.php @group hal @group legacy
ImageStyleHalJsonCookieTest class Drupal\Tests\hal\Functional\image core/modules/hal/tests/src/Functional/image/ImageStyleHalJsonCookieTest.php @group hal @group legacy
ImageStyleIntegrationTest class Drupal\Tests\image\Kernel core/modules/image/tests/src/Kernel/ImageStyleIntegrationTest.php Tests the integration of ImageStyle with the core.
ImageStyleInterface interface Drupal\image core/modules/image/src/ImageStyleInterface.php Provides an interface defining an image style entity. 1 9
ImageStyleJsonAnonTest class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleJsonAnonTest.php @group rest
ImageStyleJsonBasicAuthTest class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleJsonBasicAuthTest.php @group rest
ImageStyleJsonCookieTest class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleJsonCookieTest.php @group rest
ImageStyleListBuilder class Drupal\image core/modules/image/src/ImageStyleListBuilder.php Defines a class to build a listing of image style entities.
ImageStyleMappings class Drupal\responsive_image\Plugin\migrate\process core/modules/responsive_image/src/Plugin/migrate/process/ImageStyleMappings.php Transforms image style mappings.
ImageStyleResourceTestBase abstract class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php ResourceTestBase for ImageStyle entity. 9 3
ImageStyleRoutes class Drupal\image\Routing core/modules/image/src/Routing/ImageStyleRoutes.php Defines a route subscriber to register a URL for serving image styles.
ImageStyles class Drupal\image\Plugin\migrate\source\d7 core/modules/image/src/Plugin/migrate/source/d7/ImageStyles.php Drupal 7 image styles source from database.
ImageStylesPathAndUrlTest class Drupal\Tests\image\Functional core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php Tests the functions for generating paths and URLs for image styles.
ImageStylesTest class Drupal\Tests\image\Kernel\Plugin\migrate\source\d7 core/modules/image/tests/src/Kernel/Plugin/migrate/source/d7/ImageStylesTest.php Tests the D7 ImageStyles source plugin.
ImageStyleStorage class Drupal\image core/modules/image/src/ImageStyleStorage.php Storage controller class for "image style" configuration entities.
ImageStyleStorageInterface interface Drupal\image core/modules/image/src/ImageStyleStorageInterface.php Interface for storage controller for "image style" configuration entities. 1 1
ImageStyleTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/ImageStyleTest.php JSON:API integration test for the "ImageStyle" config entity type.
ImageStyleTest class Drupal\Tests\image\Unit core/modules/image/tests/src/Unit/ImageStyleTest.php @coversDefaultClass \Drupal\image\Entity\ImageStyle[[api-linebreak]]
ImageStyleXmlAnonTest class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleXmlAnonTest.php @group rest
ImageStyleXmlBasicAuthTest class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleXmlBasicAuthTest.php @group rest
ImageStyleXmlCookieTest class Drupal\Tests\image\Functional\Rest core/modules/image/tests/src/Functional/Rest/ImageStyleXmlCookieTest.php @group rest
ImageTest class Drupal\KernelTests\Core\Theme core/tests/Drupal/KernelTests/Core/Theme/ImageTest.php Tests built-in image theme functions.
ImageTest class Drupal\Tests\Component\Utility core/tests/Drupal/Tests/Component/Utility/ImageTest.php @coversDefaultClass \Drupal\Component\Utility\Image[[api-linebreak]] @group Image
ImageTest class Drupal\Tests\Core\Image core/tests/Drupal/Tests/Core/Image/ImageTest.php Tests the image class.
ImageTest class Drupal\Tests\ckeditor5\FunctionalJavascript core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTest.php @coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image[[api-linebreak]] @group ckeditor5 @internal
ImageTestBase abstract class Drupal\Tests\ckeditor5\FunctionalJavascript core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php @coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image[[api-linebreak]] @group ckeditor5 @internal 2
ImageThemeFunctionTest class Drupal\Tests\image\Kernel core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php Tests image theme functions.
ImageToolkit class Drupal\Core\ImageToolkit\Annotation core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkit.php Defines a Plugin annotation object for the image toolkit plugin.
ImageToolkitBase abstract class Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php Provides a base class for image toolkit plugins. 2 2
ImageToolkitForm class Drupal\system\Form core/modules/system/src/Form/ImageToolkitForm.php Configures image toolkit settings for this site. 1
ImageToolkitInterface interface Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php Defines an interface for image toolkits. 1 3
ImageToolkitManager class Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php Manages image toolkit plugins. 2 2
ImageToolkitOperation class Drupal\Core\ImageToolkit\Annotation core/lib/Drupal/Core/ImageToolkit/Annotation/ImageToolkitOperation.php Defines a Plugin annotation object for the image toolkit operation plugin.
ImageToolkitOperationBase abstract class Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php Provides a base class for image toolkit operation plugins. 2 2
ImageToolkitOperationInterface interface Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationInterface.php Defines an interface for image toolkit operations. 1
ImageToolkitOperationManager class Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManager.php Manages toolkit operation plugins. 2
ImageToolkitOperationManagerInterface interface Drupal\Core\ImageToolkit core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php Defines an interface for image toolkit operation managers. 1 2

Other projects


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