5

I am trying to override or alter Layout Builder's default help text. Is is possible to do this? If so, how?

I have added some help text in a hook_help() function in a custom module but I can only get it to add to Layout Builder's help text. I can't find a way to override the default text.

1 Answer 1

2

I don't recall doing exactly this, but I think you can use a hook_module_implements_alter() for this:

function MYMODULE_module_implements_alter(&$implementations, $hook) {
  if ($hook === 'help') {
    unset($implementations['layout_builder']);
  }
}

This should disable layout_builder_help(), and then just yours will run. A hook_help_alter() would be nice, but I don't recall ever seeing an issue for it.

1
  • Thank you! I had the hook_module_implements_alter part working but I couldn't figure out how to remove the existing layout builder help. This works!
    – Megan
    Apr 14, 2020 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.