Follow-up for #111715: Convert node/content types into configuration
Problem/Motivation
Currently there's a mess of usage check_plain()
, $this->sanitizeValue()
, node_type_get_types()
and t()
to display settings and render human name of the node-type
Proposed resolution
- implement public method to get list of node types sorted by localized label()
- always use $type->label()
with language injected to render node type human name
API changes
no