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.
returns the name of the active theme
How do I know in addition to 'theme.manager' (\Drupal::service('theme.manager'))
what other index can I call up ?
I went to drupal api page and search for Drupal::service, it returns me the page
public static function Drupal::service
But it doesn't bring back the list of indexes I can use
I have an entity reference field that needs to be wrapped in a div, but it appears divs are now being stripped out. span and p tags are fine.
Is this a bug or by design?
Edit: Clarification - the divs appear to display fine within the views preview environment. But when I use the entity reference as a field in a contact storage form, the divs are all stripped out.
I need a (noncustom module) solution for moving the placement of the help text of a Content-Type field group. By default, the helper text displays at the bottom of the field group, underneath all the fields in the field group.
What I would like is for that help text to be placed under the name of the field group. (See Image)
Alternatively, this could be accomplished if I could static content to the Form Display.
It works when the user comes to the site...but after they open 3 pages the URL starts including sobfoldername in publichtml and also /web where my drupal 9 site is
so it looks like
instead of
mysite.com/article1 they get mysite.com/mysite/web/article1
I checked the htaccess files or cloudflare...nothing seems weird