Is there a way to get categories relating to a specific entry within a plugin?
Since groundsQuestions is a category field, calling it will return an element query on which you can call one(), all(), etc. 

For example:

$groundsQuestions = $entry-&gt;groundsQuestions-&gt;all();