2022 Developer Survey is open! Take survey.

Hot answers tagged

1 vote

How do I debug Drupal\Component\PhpStorage\FileStorage::createDirectory()?

The standard debugger for PHP is Xdebug. Install it and set a breakpoint at that line. If for some reason you cannot use Xdebug, \Drupal::logger('my_module')->notice($message) or error_log() the ...
user avatar
  • 2,660
1 vote

How to make existing public files private?

I was able to resolve this without using contrib. @leymannx's answer using FileField Paths is great, but I didn't want to install a contrib module for a one-time script. If you're familiar with batch ...
user avatar
  • 6,863

Only top scored, non community-wiki answers of a minimum length are eligible