https://api.drupal.org/api/drupal/core%21includes%21file.inc/function/fi...
Transforms an absolute URL of a local file to a relative URL.
May be useful to prevent problems on multisite set-ups and prevent mixed content errors when using HTTPS + HTTP.
Parameters string
$file_url: A file URL of a local file as generated byfile_create_url().Return value string If the file URL indeed pointed to a local file and was indeed absolute, then the transformed, relative URL to the local file. Otherwise: the original value of
$file_url.
Recent comments
I created Paragraphs Aplenty (partly a port of a Drupal module) which provides a bunch of useful paragraph types. Feel free to use or be inspired for your own. The one thing I provides...
Your most useful type fields for Paragraphs
I use Paragraphs a lot too. A module I created quite recently and have just expanded the capabilities is Heading Style Field. You can select the style of the heading from No heading and No style...
Your most useful type fields for Paragraphs
Paragraphs are awesome. I always use them, when editors should be able to create appealing (landing) pages without ever messing with markup. Editors usually love that workflow. They...
Your most useful type fields for Paragraphs