filter_autop() returns <br /> but should return <br> for HTML5
filter_autop currently inserts <br />. As we are moving towards html5 (#1388926: Remove all references to "self-closing" void elements in core) and remove all references to <br />. let's...
View ArticleTwig debug output does not display all suggestions when an array of theme...
Updated: Comment #206Problem/MotivationTwig debugging output is supposed to show all template suggestions. Currently, the debug output does not show all the template suggestions that the Drupal render...
View ArticleUsing partially synchronized image fields causes validation errors and php...
Problem/MotivationThis seems to be a regression of #2644468: Multiple image upload breaks image dimensions.The patch in #33 also helps editors to translate image (media) entites when editing node...
View ArticleChange the misleading and unclear wording in Pager -> Link display
Problem/MotivationThe current option summary for 'Link display' in the DisplayPluginBase class is unclear and can lead to confusion. This issue aims to improve clarity by updating the option summary...
View Articledocs for return values from various EntityDisplayRepositoryInterface() are...
Problem/MotivationSeveral methods on EntityDisplayRepositoryInterface - all the get*Modes() - have @return docs that say something like this: * @return array * The view mode info for all entity types....
View ArticleWhy does Route access checking differ from Entity access checking?
Today, I had to solve a problem which boggled my mind. I added a custom AccessCheck to the route 'entity.node.canonical', on top of the existing access check, and made it return...
View ArticleOptimise Layout builder EntityViewDisplay
Problem/Motivation- Layout builder replaces the EntityViewDisplay class with LayoutBuilderEntityViewDisplay for all fieldable entities. It does not check if the entity actually uses LayoutBuilder. This...
View Article"Content language and translation" form doesn't save...
Problem/MotivationI'm using a drupal 10.1.1 site that migrated from drupal 7, then 9Submitting the "Content language and translation" form (ContentLanguageSettingsForm) does not save the "Custom...
View Article[PP-1] Expose Layout Builder data to REST and JSON:API
Problem/MotivationWhen accessing Layout Builder overrides via REST (i.e. when accessing an overridden entity's layout field), the contents of sections are empty.Proposed resolutionAdd a normalizer for...
View ArticleValidate URL in homepage field
The validate function for the homepage field of a Comment form currently requires that the URL includes http:// - which is an outdated and non user friendly way of expecting someone to input their...
View ArticleLinks with query params with integer keys reset the keys
Problem/MotivationUsing the link field with a link like this: /my-page?myparam[2021]=2021 when printed looks like this: /my-page?myparam[0]=2021&myparam[1]=2021This is a problem when you try to add...
View ArticleViews blocks that are disabled should not appear in block UI/layout builder
Views allows you to disable the entire view OR disable individual views displays.When the entire view is disabled, any blocks it provides will correctly not appear in block UI or layout builder. When...
View Articlestr_contains(): Passing null to parameter #1 ($haystack) of type string is...
Problem/Motivationstr_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in docroot/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php line 114
View ArticleDeprecate unused constant BYTES_TO_READ in FileUploadResource and...
Problem/MotivationFollow up from #3380345: Create an InputStreamFileWriter for writing the input stream to a file we should deprecate the duplicate constants BYTES_TO_READ in both FileUploadResource...
View ArticleArgument #1 ($elements) must be of type array, null given, called in core...
Problem/MotivationError met,The website encountered an unexpected error. Try again later. TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given,...
View ArticleFix strict type errors: Convert remaining usages of FormattableMarkup to...
Problem/MotivationSee parent(s). After #3404273: Fix strict type errors: Convert FormattableMarkup to strings (simple replacement) in core Functional tests and #3412464: Fix strict type errors: Convert...
View ArticleQuery string duplications
Problem/MotivationWhen an internal URL that contains an array query parameter is entered into a core Link field, those query parameters are duplicated when rendered. For example an entered value of...
View ArticleDeprecate Drupal\Tests\TestRequirementsTrait::checkRequirements and...
Problem/Motivation@requires module xxxxx is not a supported syntax in PHPUnit 10, and its parser no longer processes it.The valid types of @requires are described here,...
View ArticleNotice: Undefined offset: 1 en...
Problem/MotivationBulk operations in multiples nodes have this notice: Notice: Undefined offset: 1 en Drupal\Core\StringTranslation\PluralTranslatableMarkup->render() (línea 136 de...
View ArticleNon-array values for #ajax
Problem/MotivationOur documentation specifies that #ajax items in render arrays must be arrays. RenderElement::preRenderAjaxForm() confirms this behavior. Yet in three places we set '#ajax' => TRUE...
View Article