Fixes #4874 adds layout name to params for layout plugin hooks