Quantcast
Channel: Issues for Drupal core
Browsing all 291095 articles
Browse latest View live
↧

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 Article


The 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 Article


Add a dedicated @FieldFormatter annotation

See #1966246: [meta] Introduce specific annotations for each plugin type

View Article

Crufty '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 Article


Test 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 Article

Consolidate 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 Article

Consider 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 Article


Convert filter_tips_long() to Controller

Part of #1971384: [META] Convert page callbacks to controllers

View Article


Convert 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 Article

Convert 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 Article

How 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 Article

document 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 Article


Core 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 Article

Make 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 Article


Warning 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 Article

Image may be NSFW.
Clik here to view.

Buttons 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 Article


Add 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 Article

Profile 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 Article

Improve 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
Browsing all 291095 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>