Problem/Motivation
Drupal provides a list of default features themes should support. Most of the themes don't override these, but they also ignore providing support for these. This causes confusion for the users since they have features on their site that doesn't provide any functionality.
List of features and reasoning why they don't make sense:
- favicon, is there sites that don't want to provide favicon? Or should we encourage them to not have one?
- logo, this isn't supported by core.
- node_user_picture requires node module and doesn't make any sense without it.
- comment_user_picture and comment_user_verification require comment module and doesn't make any sense without it.
Proposed resolution
Remove default theme features. Every theme should explicitly specify which features it supports. Support for these features should be also facilitated be the theme itself, not by modules like it works now. Maybe this can change after themes can set dependencies to modules. But I see these being placed in the theme as a best practice.
Remaining tasks
-
User interface changes
-
API changes
Default theme features are no longer set by theme system. BC breaks can be avoided by doing something in Stable theme, or in the worst case we can hard code that into the theme system.
Data model changes
-
Comments
Comment #2
lauriiiThis is actually a task, not a bug report.
Comment #15
longwaveThought about this after #3278883: TypeError: Argument 1 passed to Drupal\Core\Entity\EntityViewBuilder::view() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in core/modules/node/node.module on line 559 which would probably not be a fatal error if the user picture on a node was rendered in a more normal way, such as via entity display settings, instead of being hardcoded in template_preprocess_node().
Should this become a meta to decide what to do about each of the settings? Providing BC will be tricky but I'm also not sure many people modify these features, they either use them as-is or just ignore them.
Comment #16
catchMost of the entity-related parts of this are under #2353867: [META] Expose Title and other base fields in Manage Display
Comment #17
catch