Problem/Motivation

You'd probably ask why would we have language selection enabled if there's only 1 language?
Short answer: config split.

Lessons don't have form display settings UI so the proposed resolution for now is to implement a base field info alter hook and set include_locked to FALSE so there's one language in the selector only and then the selector is not displayed at all.

Eventually it'll be good to add that form display UI. <- Ok, that was the right solution after all.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork lms-3576142

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

graber created an issue. See original summary.

graber’s picture

graber’s picture

Status: Active » Needs review
graber’s picture

Title: Hide lesson language selector if there's only 1 language » Add Lesson field UI
Issue summary: View changes
graber’s picture

Status: Needs review » Fixed

Merging, please create follow-ups if needed.

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.

Status: Fixed » Closed (fixed)

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