Get the public path directory
I want to save file programmatically in public path, and I want to know how can I get Public Directory path
in Drupal 8. In Drupal 7, I would use the following code.
drupal_realpath(file_default_scheme() . '://')
What is the equivalent in Drupal 8?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.