Add caching for theme() layer using 'cache key' and 'cache tags'
Twig will have some overhead. Currently the overhead of having everything in twig templates seems to be around 0.165 ms per theme() call.While this is not twig specific, we can maybe add better caching...
View ArticleThe plugin (list_default) did not specify an instance class
Problem/Motivation- Installed D8 from GIT - Created "Article" content type. - Enabled Field UI, Options - Added a field "List(text)" widget: "Select List" - Added a few keys and labels to the select...
View ArticleAdd a dedicated @FieldFormatter annotation
See #1966246: [meta] Introduce specific annotations for each plugin type
View ArticleCrufty 'allowed_values_function_display' ends up in list field stored config
options_field_settings_form() includes : $form['allowed_values_function_display'] = array(   '#type' => 'item',   '#title' => t('Allowed values list'),   '#markup' => t('The value of this...
View Article#states not supported for elements in formatter settings being displayed on...
If I have a formatter settings element that uses #states, the form element names that I set there that are standardized in field UI, are different from the form elements that are output when displayed...
View ArticleTest to prevent test classes mislabeling and wrong filenames
Problem/MotivationAfter fixing #1446366: Multiple web test classes mislabeled as unit tests and some unit tests not labeled as that more might creep back in.Proposed resolutionAdd a test to prevent...
View ArticleConsolidate arguments in #type => link and #theme => link
Problem/MotivationThis is a follow-up from #1922454-124: Gut l(), fix theme('link'), have a working framework for consistently generated links inside and outside of Twig. #theme => link uses #path...
View ArticleConsider renaming translation_entity module
translation_entity implements hook_field_info_alter. However, there's also hook_entity_field_info_alter. In case translation is enabled (although it's hidden in D8), this hook is also seen as an...
View ArticleConvert filter_tips_long() to Controller
Part of #1971384: [META] Convert page callbacks to controllers
View ArticleConvert aggregator_test module callbacks to a Controller
Part of #1971384: [META] Convert page callbacks to controllersFor instructions on how to convert a page callback into a controller, see the WSCCI Conversion Guide.
View ArticleConvert layout_test_page() to a Controller
Part of #1971384: [META] Convert page callbacks to controllersFor instructions on how to convert a page callback into a controller, see the WSCCI Conversion Guide.
View ArticleHow do I override default services?
I want to override the default service used for file usage (set in core/modules/file/file.services.yml), so that it doesn't auto-delete unused files. I have no idea how to do it. I cannot find an...
View Articledocument Form API #element_validate callback
We recently adopted a new standard way to document "callback functions" -- see http://drupal.org/coding-standards/docs#callback-def for the standard and #1250500: [policy adopted; patch done] Find a...
View ArticleCore has no valid use-case for mt_rand() or uniqid()
From #1929288-45: Move cryptographic functions to Crypt component: Any reason:<?phpCrypt::hashBase64(uniqid(mt_rand(), TRUE) . mt_rand())Crypt::hashBase64(uniqid(mt_rand(),...
View ArticleMake l() optionally return structured output
Problem/MotivationThere is currently duplication between l(), theme_link() and theme_more_link(). Attempting to consolidate through a common function (like url_is_active) that all three call introduces...
View ArticleWarning when adding content with an empty menu path
menu_node_submit() calls entity_create() when $form_state['values']['menu'] is empty which results in the following message appearing:Warning: Invalid argument supplied for foreach() in...
View ArticleButtons style update
Problem/MotivationButtons are an integral part of the admin UI experience, and currently there are many different styles of buttons used in core (dropbutton, manage display cog button, form buttons)....
View ArticleAdd a webfont version of Source Sans Pro font
Short version: The style guide for the updated default Seven admin theme proposes to use the Source Sanse Pro font. Source Sans Pro is not only free but open source, available under the SIL Open Font...
View ArticleProfile config does not overwrite module default config on install...
The standard install profile provides system.cron.yml config file, with non-default cron settings, but this file is not used by the install system.What are the steps required to reproduce the...
View ArticleImprove performance by only conditionally forcing small, very frequently...
In Drupal 7 l() did something rather weird, it looked for 'link' in the theme registry and called the theme function if it could find anything. This meant that anything calling l() when 'link' wasn't...
View Article