getLayout to support entryPath param