Checks whether the user described by $account is the author of this job.
AccountInterface $account: (Optional) A user object. Defaults to the currently logged in user.
bool TRUE if the passed account is the job owner.
Overrides JobInterface::isAuthor
public function isAuthor(AccountInterface $account = NULL) {
$account = isset($account) ? $account : \Drupal::currentUser();
return $this
->getOwnerId() == $account
->id();
}