Issue #2494775 by DuaelFr: Replace deprecated usage of entity_create('action') with a direct call to Action::create()