Skip to content
Snippets Groups Projects
Commit 713810bd authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4648: removing revision info from layout builder page

parent c1804b0c
No related branches found
No related tags found
1 merge request!121ISTWCMS-4648: removing revision info from layout builder page
...@@ -519,6 +519,12 @@ function uw_cfg_common_form_menu_link_edit_alter(array &$form, FormStateInterfac ...@@ -519,6 +519,12 @@ function uw_cfg_common_form_menu_link_edit_alter(array &$form, FormStateInterfac
*/ */
function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void { function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void {
// ISTWCMS-4648: removing revisions from layout builder page.
if (\Drupal::routeMatch()->getRouteName() == 'layout_builder.overrides.node.view') {
unset($form['revision']);
unset($form['advanced']);
}
// Ensure that we are on a UW content type node. // Ensure that we are on a UW content type node.
if (preg_match('/node_uw.*add_form/', $form_id) || preg_match('/node_uw.*edit_form/', $form_id)) { if (preg_match('/node_uw.*add_form/', $form_id) || preg_match('/node_uw.*edit_form/', $form_id)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment