Twig LoaderError after upgrading Twig to 2.15.3
Problem/MotivationAfter upgrading drupal core with composer from 9.4.5 to 9.4.6, admin theme Gin (contrib) based on Claro (core theme) is broken (wsod) while front theme (contrib) is still running....
View ArticleAvoid costly lookups of drupal_array_get_nested_value /...
Problem/Motivationdrupal_array_nested_key_exists / drupal_array_get_nested_value is very costly and essentially always traverses the same path within either form_state['input'] / form_state['values']...
View Article[meta] Deprecate dependency setters and getters on interfaces
Problem/MotivationDuring the Drupal 8 development cycle we have added many setters (and getters) to interfaces in order to inject (and sometimes retrieve) dependencies of the primary classes that...
View ArticleDeprecate dependency setters and getters on LanguageNegotiatorInterface
This issue deals with #2494695: [meta] Deprecate dependency setters and getters on interfaces for \Drupal\language\LanguageNegotiatorInterface.
View ArticlePerformance improvement for importing of project translations
Problem/MotivationCurrently importing of .po files for projects could take unacceptable about of time.Proposed resolutionI have found that problem related to implementation of...
View Article[meta] Convert assertions involving use of xpath to WebAssert, where possible
Problem/MotivationFrom #3129002: Replace usages of deprecated AssertLegacyTrait::assert():In cases of constructs like $view_link = $this->xpath('//div[@class="messages"]//a[contains(@href, :href)]',...
View ArticleMove template_preprocess, _template_preprocess_default_variables into services
Problem/MotivationComing from #2325571-7: Replace _theme() calls by calls to \Drupal::theme()->render() @alexpott suggested moving template_preprocess and _template_preprocess_default_variables into...
View ArticleStarterkit theme roadmap
New starterkit theme generator has been added as an experimental new tool in core. The starterkit theme generator allows developers to create a starting point for their theme. The generated theme has...
View ArticleAdd negated regular expressions for views filters (string and integer)
Problem/MotivationUsecase: There are three nodes with the following titles: foo, bar, drupal. Requirement: Create a view that lists nodes that does not have title foo or bar.Using views string filter...
View ArticleHTTP ERROR 500 on views pages
HTTP ERROR 500 on views pagesSome pages with views showing the following error massage : This page isn’t working website.com is currently unable to handle this request. HTTP ERROR 500this error shows...
View ArticleContextDefinition::isSatisfiedBy does not take into account cardinality
Problem/MotivationContextDefinition::isSatisfiedBy does not check if the definition is multi-valued. This can cause an error when checking violations.Steps to reproduceThe following code produces an...
View ArticleDisplay category-related recipes when seeing a recipe full page
Problem/MotivationA common issue site builders face is adding a related content block based on categories. This is doable only with Drupal core, but people assume they will need a contrib module for...
View ArticleThe $validated flag should be reset if the entity changes
Problem/MotivationIf an entity is validated and before save is called it still might be changed and if this happens the $validated property should be reset because the new changes have not been...
View ArticleCreate new |value and |label twig filters
Let's create new |value and |label Twig filters for core. Various modules such as Twig Field Value provide this within contrib. QuestionsHow do we handle entity references?Any special conditions for...
View ArticleSub form not passed to BlockPlugin's submit callback
Problem/MotivationIn #2537732: PluginFormInterface must have access to the complete $form_state (introduce SubFormState for embedded forms), the SubFormState class was introduced for BlockPlugin's...
View ArticleFollow-up for #3231334: global attributes should result in HTMLRestrictions...
Problem/Motivation⚠️ Discovered while reviewing #3312442: Make ready for ckeditor5, which is updating the ckeditor_bidi module to support CKEditor 5 and provide an automatic upgrade path.<p lang>...
View ArticleAdd |remove_class twig filter
This is a followup to #3301853: Create twig filters: |add_class, |remove_class, and |set_attribute.In that issue we wanted to add the |remove_class along with the other filters. However, we determined...
View ArticlePostCSS Logical not transpiling flow relative properties (e.g. float:...
In #3312481: Update core's browserlist we updated the browserlist database which determines what CSS properties PostCSS will transpile. With this update, Drupal core is not transpiling any logical...
View ArticleCreate twig filters: |add_class and |set_attribute
This is related to #3301373: Create twig |add_suggestion filterIn conjunction with the |add_suggestion filter, themers typically want to set CSS classes on the field components to maintain proper BEM...
View Article