You are here

public function TaxonomyHierarchySelection::setCurrentUser in Workbench Access 8

Sets currentUser.

Parameters

\Drupal\Core\Session\AccountInterface $currentUser: New value for currentUser.

Return value

$this

File

src/Plugin/EntityReferenceSelection/TaxonomyHierarchySelection.php, line 71

Class

TaxonomyHierarchySelection
Provides specific access control for the taxonomy_term entity type.

Namespace

Drupal\workbench_access\Plugin\EntityReferenceSelection

Code

public function setCurrentUser(AccountInterface $currentUser) {
  $this->currentUser = $currentUser;
  return $this;
}