Clarify “Database support for JSON” success requirement message for Drupal 11
Problem/MotivationThe text “Is required in Drupal 10.0.” is shown next to the “Database support for JSON” section is the Status report. This should mention “Drupal 11.0” or “Since Drupal 10.0”.Steps to...
View ArticleMove the on-demand-table creation into the database API
Problem/MotivationMenu tree storage, config and cache uses the same pattern: execute a query, catch an exception, try to create the table, if succeeded rerun the query. This is already wasteful and...
View ArticleThrows when creating new version: InvalidArgumentException: Invalid...
While working with https://www.drupal.org/project/content_moderation we encountered an error: InvalidArgumentException: Invalid translation language (es) specified. in...
View ArticleFix Drupal.Commenting.FunctionComment.MissingReturnComment in...
Problem/MotivationFix the sniff for some file paths in core/libSteps to reproduceProposed resolutionThis adds a comment in most cases. There are a few like the following that use an ignore line...
View ArticleRemove default colon behind inline labels
Problem/MotivationThe formatter adds a default colon behind the inline label, as example in in date fields. This is bad practice. In some languages, like Greek, colon is not even used. If people want...
View ArticleFatal error: Uncaught TypeError: Drupal\Core\Extension\ThemeHandler::addTheme()
Problem/MotivationError was introduced in the 10.3.6 release of Drupal.Fatal error: Uncaught TypeError: Drupal\Core\Extension\ThemeHandler::addTheme(): Argument #1 ($theme) must be of type...
View ArticleDeprecated function: str_starts_with(): Passing null to parameter #1...
Problem/MotivationWe are getting deprecation notices on 404 pagesDeprecated function: str_starts_with(): Passing null to parameter #1 ($haystack) of type string is deprecated in...
View ArticleUse the builder pattern to make it easier to create render arrays
Problem/MotivationSince Drupal 8 we've done some work to remove 'magic array keys'. But we still have render arrays, which every time you use them cause you to need to look-up the allowed keys. This is...
View ArticleDrupal Usability Meeting 2024-11-22
This meeting takes place every Friday at 14:00 UTC (currently 6:00am PT, 9:00am ET). See Time.is to see what that is in your timezone.The meetings are held using Zoom, and a link is posted in the #ux...
View ArticleReferring the same entity multiple times breaks _referringItem
Problem/MotivationEntityReferenceFormatterBase::getEntitiesToView() sets $entity->_referringItem but if the same entity is referred multiple times then the value gets overridden.Steps to...
View ArticleViews field labels cannot be defined per view (display)
Problem/MotivationWhen you change the label of a field which also exists in other views, the label is changed everywhere and not just in the view you did the change. This is not acceptable as the same...
View ArticleMethod getMockForAbstractClass() is deprecated - replace in class...
Problem/MotivationMethod getMockForAbstractClass() of class PHPUnit\Framework\TestCase is deprecated in PHPUnit 10.Some uses were removed as part of #3217904: [meta] Support PHPUnit 10 in Drupal 11,...
View ArticleDefaultExceptionHtmlSubscriber should not clone the request for...
Problem/MotivationThis was originally reported to the security team but was cleared for a public issue.DefaultExceptionHtmlSubscriber clones the original request when making a subrequest to display 401...
View ArticleSort config alphabetically if no orderby defined
Problem/MotivationWhen exporting configuration some sequences may define an "orderby" attribute, per #2361539: Config export key order is not predictable for sequences, add orderby property to config...
View ArticleConfig export key order for sequences: "orderby" does not support...
Problem/Motivation#2361539: Config export key order is not predictable for sequences, add orderby property to config schema introduced predictable sequence ordering. It introduced orderby: value and...
View ArticleDrupal Usability Meeting 2024-12-06
This meeting takes place every Friday at 14:00 UTC (currently 6:00am PT, 9:00am ET). See Time.is to see what that is in your timezone.The meetings are held using Zoom, and a link is posted in the #ux...
View ArticleUX: Hide entity ID in autocomplete widget
When using an autocomplete widget, Drupal adds the entityID in brackets after the entity name. The entityID is unique, but the text label for that entity may not be, so adding the ID ensures the user...
View ArticleAdd CronSubscriberInterface so that services can execute cron tasks directly
Problem/Motivationhook_cron() is fairly dated and limited concept. One is that you can only have a single implementation per module, so if you need to do multiple things, you need to put it all in the...
View ArticleAn update to symfony/http-foundation plus a trailing space took down the...
Problem/Motivationsymfony/http-foundation released a security update so we updated our Drupal 10.3 site to version 6.4.14 from 6.4.12. Here is the diff.We noticed that after doing that the site worked...
View ArticleAdd a core FileCache implementation that is database-backed
Problem/MotivationSee notes in #3478621: Add filecache to OOP hook attribute parsing.apcu isn't shared between cli and web processes, nor is it shared between cli processes - therefore whenever YAML...
View Article