For more information, use a on ddl_command_endtrigger instead on ddl_command_start. In a function that calls such a trigger, you can use pg_event_trigger_ddl_commands function:
CREATE OR REPLACE FUNCTION insert_layer()
RETURNS event_trigger
AS $$
DECLARE r RECORD;
BEGIN
RAISE NOTICE 'event for % ', tg_tag;
r := pg_event_trigger_ddl_commands();
INSERT INTO public."Layers"(name) VALUES(r.object_identity);
END;
$$
LANGUAGE plpgsql;
Note the code changes:
1) EXECUTE
2) "public.Layers" "public.Layers" , Layers public.