Created
September 16, 2016 16:23
-
-
Save petebarnett/39b6947d5ac275c8701f43ee0888348d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$referenced_files = $node->get('your_field')->referencedEntities(); | |
$vars['download_article'] = file_create_url($referenced_files[0]->uri->value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment