Convert '_none' option to a constant, deprecate form_select_options(), deprecate form_get_options() for removal, move form_select_options() to a new class.

Created on 9 March 2015, over 9 years ago
Updated 14 April 2024, 2 months ago

Problem/Motivation

The string '_none' is repeated throughout the module and tests, using a constant makes it easier to refactor.

Steps to reproduce

NA

Proposed resolution

  1. Convert _none to a constant.
  2. Move form_select_options() to a helper class.
  3. Deprecate form_get_options() for removal.

Remaining tasks

- Review
- Commit

User interface changes

API changes

String '_none' is converted to constant.
form_select_options() is moved as class method in \Drupal\Core\Form\FormOptionsHelper
form_get_options() is deprecated for removal

Data model changes

NA

Release notes snippet

NA

๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Optionsย  โ†’

Last updated about 1 month ago

No maintainer
Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia dashaforbes

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

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