Call to a member function getSettings() on null in...
Problem/Motivationhttps://git.drupalcode.org/project/drupal/-/commit/e878713656faabf6d3afd... committed as part of the solution for #2327883: Field [storage] config have incomplete settings until they...
View ArticleAvoid warning from imagecreatefrompng when loading png with obscure iCCP...
Problem/MotivationWhen a PNG (and some other rarely used formats) image contains iCCP chunk with sRGB IEC61966-2.1 color profile, libpng triggers warning:Warning: imagecreatefrompng(): gd-png: libpng...
View ArticleUse specific Error Identifiers with @phpstan-ignore for phpstan-drupal errors
Problem/MotivationFollow up for https://www.drupal.org/project/drupal/issues/3447950 Blocked by https://github.com/mglaman/phpstan-drupal/issues/772In...
View ArticleDrupal\Component\Plugin\LazyPluginCollection::getIterator requires to return...
Problem/MotivationSince Drupal 10, I have a derived class implementation from Drupal\Component\Plugin\LazyPluginCollection. It is using a generator for implementing...
View ArticleDon't rely on entity bundle fields for views plugins during site installs
Problem/MotivationDuring site installs where configuration is split into separate modules, it's possible for a field's base storage field to exist, but not have a bundle assigned to it yet when the...
View ArticleUpdate LB provided forms to fully support CreateDialog and DrupalAutoButtons...
Problem/MotivationWhen attempting to move core-provided form actions into the reserved button area that jQuery UI Dialog implements by setting drupalAutoButtons = TRUE within data-dialog-options, the...
View Article"Undefined array key 1 in template_preprocess_html()" on the 404...
Problem/MotivationWhen visiting the index.php with extra tacked on at the end, such as index.php.test, a warning is produced:Warning: Undefined array key 1 in template_preprocess_html() (line 1312 of...
View ArticleImprove Drupal\Core\Ajax\MessageCommand API documentation
LinksCore: https://git.drupalcode.org/project/drupal/-/blob/11.0.x/core/lib/Drupal/...ECA definition of the AJAX message:...
View ArticleConfig entity types MUST allow NULL value for any config entity PHP class...
Problem/MotivationDiscovered in #3444417: "Developer-created components": mark which SDCs should be exposed in XB.#3364109: Configuration schema & required values: add test coverage for `nullable:...
View ArticleStacked caches result in max-age drift in caches
Problem/MotivationPlaceholder: When multiple caches are stacked max-age is not calculated correctly. When something uses the max-age of a lower cache the max-age is just reused, even if this is way...
View ArticleAttach correct image/webp header in .htaccess when mime module is enabled
Problem/MotivationWhen converting images using an image style, to webp (as typical use-case, but I guess it might be the same for other formats), the resulting MIME return type of the image stays the...
View ArticleCLI entry point in Drupal Core (Dex)
dex module:command --optionsThis is a proposal for a common entry point for CLI commands relying on a booted Drupal install.This issue comes out of many years of maintaining a slim console, and...
View Articledump() calls in tests are producing a PHPUnit\Framework\Exception
Problem/Motivationdump() statements in kernel tests are now causing the test to fail with exception: PHPUnit\Framework\Exception, rather than the actual failure of the test.I'm not sure why...
View ArticleAdd an Autowire trait for plugins
Problem/MotivationWe already have a \Drupal\Core\DependencyInjection\AutowireTrait class, suitable for wiring dependencies into classes extending...
View Articlehook_entity_reference_selection_alter() is undocumented
Problem/MotivationSelectionPluginManager does: $this->alterInfo('entity_reference_selection'); But I can't find hook_entity_reference_selection_alter documented in any api.php file. Steps to...
View Article[PP-1] Use enums instead of string choices in user.schema.yml
Problem/MotivationUse ENUMS instead of string choices.Steps to reproduceProposed resolutionRemaining tasksUser interface changesAPI changesData model changesRelease notes snippet
View ArticleGrant query level access to own unpublished nodes
Problem/MotivationCurrently "view own unpublished content" access is only checked and grants access a user to its own content when ->access('view') method is called on an already loaded Node object...
View ArticleSelectionPluginManager class docs should explain how a selection plugin is...
Problem/MotivationSelectionPluginManager has complex logic for determining which plugin it returns from getInstance().The logic is in getInstance() and getPluginId().Because these are methods which are...
View ArticleMedia library potentially triggers remote oEmbed request for each media item
Problem/MotivationThe following three circumstances don't play together well:OEmbed::getMetadata() fetches the oEmbed resource regardless of the metadata attribute being fetched. If the resource data...
View Articlegenerate-theme command puts quotes around YAML keys with spaces in them
Problem/MotivationThe generate-theme command puts quotes around the 'base theme' YAML key in the generated theme's info.yml file, because it has spaces in it:'base theme': stable9 Steps to reproduceDo$...
View Article