Problem/Motivation

Sometimes it is useful to make the class selection required.
I suggest adding an additional checkbox on the widget settings page (only for "Let users select a class from a list" or "Users can set a class manually") that will mark the class selection as required.

User interface changes

An additional checkbox will be added in the widget settings.

Issue fork link_class-3581855

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vitaliyb98 created an issue. See original summary.

vitaliyb98’s picture

Status: Active » Needs review

Summary:

  • Added "required" checkbox functionality (label still needs to be finalized).
  • Added test coverage for this feature: LinkClassRequiredWidgetTest.
  • Refactored shared logic for tests into a base class (LinkClassWidgetTestBase) to reuse across tests. It will be useful in future test refactoring.
flocondetoile’s picture

Looks good.

  • 44875736 committed on 2.0.x
    Issue #3581855 by vitaliyb98, flocondetoile: Add option to make class...
flocondetoile’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

vitaliyb98’s picture

Assigned: vitaliyb98 » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.