Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#4 3238506-4.patch652 byteslarisse
Screenshot_4.png16.64 KBAnonymous (not verified)

Comments

Anonymous’s picture

Bmuskan created an issue. See original summary.

larisse’s picture

Hello @Bmuskan! What Drupal version are you using?

Anonymous’s picture

I am using drupal 8.7.3.

larisse’s picture

Status: Active » Needs review
StatusFileSize
new652 bytes

I created this patch, but I think that it don't need to be commited.
scanDirectory function exists only in drupal 8.8.x versions. (https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21File%21Fi...)
In versions less than this, we need to use file_scan_directory function.

Maybe is necessary update info.yml file to required core_version_requirement: ^8.8.

Anonymous’s picture

Status: Needs review » Fixed

Yes, the above patch is the worked for me. Thank you

larisse’s picture

Status: Fixed » Reviewed & tested by the community

Changing to RTBC because #5...

jcnventura’s picture

Status: Reviewed & tested by the community » Needs work

The solution in this patch reverts the needed Drupal 9 readiness fix.

The right solution is to set core_version_requirement to ^8.8.

  • jcnventura committed f0de8be on 8.x-1.x
    Issue #3238506 by larisse, jcnventura: Call to undefined method Drupal\...
jcnventura’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.