isContentForm() * @see hook_gin_content_form_routes_alter() */ function hook_gin_content_form_routes() { return [ // Layout a custom node form. 'entity.node.my_custom_form', // Layout a custom entity type edit form. 'entity.my_type.edit_form', ]; } /** * Alter the registered routes to enable or disable Gin’s edit form layout. * * @param array $routes * The list of routes. * * @see GinContentFormHelper->isContentForm() * @see hook_gin_content_form_routes() */ function hook_gin_content_form_routes_alter(array &$routes) { // Example: disable Gin edit form layout customizations for an entity type. $routes = array_diff($routes, ['entity.my_type.edit_form']); } /** * @} End of "addtogroup hooks". */