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'm using HOOK_form_alter to store a string for a taxonomy entity. Because I want to be graphical, I'm using the Form API radios type combined with special CSS for my customers to choose which color they want.
My website (http://www.evlbi.org) is showing an error (see below). I'm quite new at Drupal and am trying to understand what the problem is. I think it has something to do with the Backup & Migrate Module which is not installed. When I click on Extend to install the module I get the error.
Strange URL behaviour drupal 8.9
Next problem I have on a drupal 8.9.5 dev site.
I have a entity with teams and this entity has a text field with the url of the team page (relative link)
On a view of the block type I rewrite the result with this rule:
<a href="{{field_team_link}}">
{field_team_icon_url}}
{{field_team_name}}
</a>
And the link field in the team entity is something like /teampagina/HA1 Where HA1 is the teamcode and this lead to a page with the contextual filter = team_code
I have read through the following options I found. I am not sure which one to choose, when it comes to suitability for initial import, update convenience, future module support etc. Can you please share your experience to help me make my choice:
This is the only place I use this constant. The reason for using a PHP global const for this is to have it defined near the top of the file for easy spotting and replacement. So having it as a value inside the function is not an option.