Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The documentation of ImageInterface::getTookit lists the wrong return type.
/**
* Returns the image toolkit used for this image file.
*
* @return string
* The image toolkit.
*/
public function getToolkit();
With this, IDE's can't make proper suggestions for the returned value.
Proposed resolution
Change string
to \Drupal\Core\ImageToolkit\ImageToolkitInterface
.
Remaining tasks
none
API changes
none
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal-image-interface-type-doc-2222911-2.patch | 511 bytes | Sutharsan |
Comments
Comment #1
Sutharsan CreditAttribution: Sutharsan commentedComment #2
Sutharsan CreditAttribution: Sutharsan commentednow with a correct patch.
Comment #3
mondrakeGood catch, thanks!
Comment #4
webchickNice one.
Committed and pushed to 8.x. Thanks!