Create a module and custom field type with corresponding widget. in the "formElement" function of the widget class; build and return a "time" field type. Ex: '#type" => 'time'.

Expected behavior is to render a time field without date.

Result was no rendered field at the markup level.

This is not server dependent. Tried on multiple environments. Comments in Drupal core indicated "time" is a valid field type.

Errors:

Warning: Illegal offset type in Drupal\Core\Render\Element\Select::processSelect() (line 129 of /var/www/html/docroot/core/lib/Drupal/Core/Render/Element/Select.php).

Comments

ameeuwsen created an issue. See original summary.

ameeuwsen’s picture

Issue summary: View changes
StatusFileSize
new110.03 KB
new46.36 KB
ameeuwsen’s picture

Issue summary: View changes
jhedstrom’s picture

Version: 8.1.0 » 8.1.x-dev
Issue tags: +Needs tests
ameeuwsen’s picture

Status: Active » Closed (works as designed)