Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have created my own theme in drupal 9 and am trying to get the value of a theme setting called:
'Use the logo supplied by the theme'
This is a standard drupal setting which is on my theme configuration page. I want to use the setting to alter my theme. I've seen how to create my own user setting and get the value with
$setting = theme_get_setting('my_setting');
but in this case I'm trying to get the value from a for the CMS has created.
Say I have a site and a theme that uses Paragraphs for content creation. I have a basic "Text"-paragraph for inserting formatted text to a node. Sometimes the text needs to be aligned left and sometimes center.
Because most of the text is aligned left, I'd use some sort of option to align it center when needed. For this I have many options to go with:
I have a field for slider images, I want iterate all images in views-view-fields--view-machine-name.html.twig, currently I am only able access raw html using {{ field.content }}.