Issue #2641692 by Mac_Weber: Replace deprecated usage of entity_create('user_role') with a direct call to UserRole::create()