public function LocalTask::setOwner

File

translators/tmgmt_local/src/Entity/LocalTask.php, line 151

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function setOwner(UserInterface $account) {
  $this
    ->set('uid', $account
    ->id());
  return $this;
}