Returns the entity for the given job item.
\Drupal\tmgmt\JobItemInterface $job_item: The job entity
\Drupal\Core\Entity\ContentEntityInterface The entity.
protected function getEntity(JobItemInterface $job_item) {
return \Drupal::entityTypeManager()
->getStorage($job_item
->getItemType())
->load($job_item
->getItemId());
}