Include 'composer' directory in phpcs scans
Problem/MotivationRecently, a new top-level directory composer was introduced. This directory holds sources for code that does not need to be packaged in the drupal/core subtree split, and therefore...
View ArticleLet modules opt in to the bundle-specific permissions form
Problem/Motivation#2934995: Add a "Manage permissions" tab for each bundle that has associated permissions applied to all entity types that have bundles and set field_ui_base_route in the entity...
View ArticleDeprecate the "entity_upcast" operation specified in EntityConverter
Problem/MotivationTODOProposed resolutionRemaining tasksUser interface changesAPI changesData model changesRelease notes snippet
View ArticleRemove loading from the Drupal\Drivers namespace from...
Problem/MotivationThe loading of database drivers from the namespace Drupal\Drivers has been deprecated in D9 and can be removed in D10. That happens in the function drupal_get_database_types() in the...
View ArticlePHP 8.1 ComputedItemListTrait::offsetExists deprecation
Problem/MotivationWhen a class uses ComputedItemListTrait, a PHP 8.1 deprecation is trigger on offsetExists because return is not typed as bool.Steps to reproduceFor example the profile module uses...
View ArticleContent: Has taxonomy term ID (with depth) query performance
Updated: Has taxonomy term ID (with depth) query performanceProblem/MotivationWhen using views + taxonomy term id with depth, either as view argument or view filter, the MySQL query can have quite few...
View ArticleAllow image fields to use any extensions the current image toolkit supports...
I found that it's possible to upload SVG images to Drupal 7 (7.38) and they can even be rendered as the original image, but any image styles don't work (obviously since gd doesn't support SVG). Of...
View ArticleUse PHP attributes instead of doctrine annotations
Problem/MotivationWe use Doctrine's annotations to add metadata to our classes. For example, Block's use annotations to set the block ID and admin label. PHP 8.0 introduced a new language feature PHP...
View ArticleMigrating reference fields: target_bundles may never be empty array
Problem/MotivationDiscovered via #2814953: Migrate Drupal 7 node/user reference fields, but is a long pre-existing bug.#2814953-96: Migrate Drupal 7 node/user reference fields contains:+++...
View ArticleAllow preferred language selection for link field
Problem/MotivationIn multilingual sites it's currently not possible to select a specific translation for internal path's when creating links. For instance, I have a Dutch/English site:Node 1 is the...
View ArticleAJAX call can detach all behaviors
Situation: An AJAX calls returns, amongst others, an "insert" command with incorrect selector, and/or ajax.wrapper isn't set on the AJAX object. Result: On line 1056 of ajax.js (latest 8.4.x-dev)...
View Article\Drupal\views\Plugin\views\area\Entity is missing config dependency on view mode
Problem/MotivationWhen using the Views entity area plugin by adding the output of an entity to the footer or header of a view you can select the view mode the entity will be displayed in.The config...
View ArticleAuto-placeholdering for #lazy_builder with bubbling of max-age
Problem/MotivationSplit off from #2543334: Auto-placeholdering for #lazy_builder with bubbling of contexts and tags to make that one more easily reviewable. Details to follow.Proposed resolutionDetails...
View ArticleAllow form redirects to ignore ?destination query parameter
Problem/MotivationIn #2767857: Add destination to edit, delete, enable, disable links in entity list builders we added destination query parameters to config entity lists and operations in Views. This...
View ArticleUse Fibers to offload discovery builds
Problem/MotivationAfter a full cache clear, Drupal has to build up various caches before it can serve a request. Router, menu links, various plugin registries, twig templates, CSS assets (#1014086:...
View ArticleRun automated cron in a Fiber
Problem/MotivationSince we added automated cron to core, we've tried various methods to get it to run in the background.See discussion in #566494: Running cron in a shutdown function breaks the site,...
View ArticleAdd an 'instant' queue runner with Fibers
Problem/MotivationDrupal has two ways to handle long-running tasks:1. Queue API, by default queues are run on cron, often sites run queues via jenkins on different schedules, there are projects like...
View ArticleModules cannot grant access using hook_file_download()
from FileDownloadController:If one or more modules returned headers the download will start with the returned headers. If a module returns -1 an AccessDeniedHttpException will be thrown.This does not...
View Article[PHP 8.1] Fibers
Problem/MotivationPHP 8.1 adds Fibers, opening this meta to group together potential use cases.https://php.watch/versions/8.1/fibershttps://www.php.net/releases/8.1/en.phpSteps to reproduceProposed...
View ArticleFix spelling for words used once, beginning with 'q' ->...
Problem/MotivationLimit this to one line easy fixes, avoid any possible controversy, or any change that would better fit with other words, such as doing chien and chiens in the same patch. The list of...
View Article