How to use element programmatically in a custom form

Created on 18 September 2020, almost 4 years ago
Updated 17 January 2024, 5 months ago

Problem/Motivation

I'm having a hard time finding out how I should use this form element inside of a custom form without documentation. It would be appreciated if someone could help me get started.

Steps to reproduce

grep ' * @FormElement("' -R web/modules/contrib/office_hours/
web/modules/contrib/office_hours/src/Element/OfficeHoursSlot.php: * @FormElement("office_hours_slot")
web/modules/contrib/office_hours/src/Element/OfficeHoursTable.php: * @FormElement("office_hours_table")
web/modules/contrib/office_hours/src/Element/OfficeHoursDatelist.php: * @FormElement("office_hours_datelist")
web/modules/contrib/office_hours/src/Element/OfficeHoursList.php: * @FormElement("office_hours_list")
web/modules/contrib/office_hours/src/Element/OfficeHoursDatetime.php: * @FormElement("office_hours_datetime")

Proposed resolution

- Write documentation on how to correctly build a functional form array for an office_hours element.
And/or
- Provide an actual office_hours element that eases this process.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Documentation

Created by

πŸ‡§πŸ‡ͺBelgium alexverb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024