Just use getLinkByRel
Just use getLinkByRel

If the passed Entity doesn't have a getLinkByRel function, that means it hasn't been parsed. This should fail, since an un-parsed entity is not necessarily a proper Entity anyway.

Brightspace/d2l-my-courses-ui