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.
Overrides LocalTaskInterface::isAuthor
public function isAuthor(AccountInterface $account = NULL) {
$account = isset($account) ? $account : \Drupal::currentUser();
return $this
->getOwnerId() == $account
->id();
}