Problem/Motivation
As discussed in #2353867: [META] Expose Title and other base fields in Manage Display, sitebuilders cannot configure the display of node's title even though they often want to.
Worse, even if developers use a hook to modify the node's title field adding ->setDisplayConfigurable('view', TRUE)
, and a sitebuilder then enables the title field in a view mode, it makes no difference. The template_preprocess_node and the node.html.twig take over the rendering of the node's title, ignoring the configured view displays. The same problem applies to the 'created' and 'uid' fields.
This issue has been split from #2353867: [META] Expose Title and other base fields in Manage Display to contain minimal, back-compatible changes providing an important first step to solving the original problem. It creates a new node entity property that disables extra preprocessing of node base fields (title, created and uid). Any module can disable the preprocessing like this:
function XXX_entity_type_build(array &$entity_types) {
$entity_types['node']->set('bypass_base_preprocess', TRUE);
}
There are not yet any GUI changes as we must solve other issues first. These changes are fully back-compatible even where a developer already calls setDisplayConfigurable.
Proposed resolution
@todo
Remaining tasks
- Sub-system maintainer review by @lauriii in #97
- Expert review by @Berdir in #83
- Various community reviewers and testers (also see recent comments on #2353867)
User interface changes
None
API changes
@todo
Data model changes
None
Release notes snippet
@todo Important to complete