Checks whether the user described by $account is the author of this task.
\Drupal\Core\Session\AccountInterface $account: (Optional) A user object. Defaults to the currently logged in user.
public function isAuthor(AccountInterface $account = NULL);