You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIUC currently the Y Styles details element for overriding default styles is shown to anyone with access to the layout builder form. I'd find it useful for it to be behind a permission (eg .override ws settings). Would that be something you'd consider? (Currently I'm using a form alter.)
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry everyone I was out of action for a little bit. The code we've been using is the following in a general hook_form_alter():
// Hide the Y Styles override details element.// @see https://github.com/YCloudYUSA/y_lb/issues/169 for a possible nicer// approach.if (str_ends_with($form_id, '_layout_builder_form') && !empty($form['ws_settings_container'])) {
$form['ws_settings_container']['#access'] = FALSE;
}
IIUC currently the Y Styles details element for overriding default styles is shown to anyone with access to the layout builder form. I'd find it useful for it to be behind a permission (eg .
override ws settings
). Would that be something you'd consider? (Currently I'm using a form alter.)Thanks!
The text was updated successfully, but these errors were encountered: