Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}
Image title text: {{ node.field_name.title }}
Entity Reference path: {{ content.field_tags[0]['#url'] }}
<?php | |
/** | |
* @file | |
* Preprocess and suggestions for a Drupal sub-theme. | |
* | |
*/ | |
use Drupal\node\NodeInterface; | |
use Drupal\media\MediaInterface; |
# Change this to :production when ready to deploy the CSS to the live server. | |
environment = :development | |
#environment = :production | |
# If in development (set above), we can turn on the sourcemap file generation. | |
# Requires sass 3.3+ and compass 1.0+ | |
# Determine version from command line: sass --version && compass --version | |
sourcemap = (environment == :development) ? true : false | |
# Alternative development debugging methods |
# Change this to :production when ready to deploy the CSS to the live server. | |
#environment = :development | |
environment = :production | |
# If in development (set above), we can turn on the sourcemap file generation. | |
# Requires sass 3.3+ and compass 1.0+ | |
# Determine version from command line: sass --version && compass --version | |
sourcemap = (environment == :development) ? true : false | |
# Alternative development debugging methods |