You are here

public function DraggableViewsField::setCurrentUser in DraggableViews 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/field/DraggableViewsField.php \Drupal\draggableviews\Plugin\views\field\DraggableViewsField::setCurrentUser()

Sets the current_user service.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: Current user.

Return value

$this

File

src/Plugin/views/field/DraggableViewsField.php, line 54

Class

DraggableViewsField
Defines a draggableviews form element.

Namespace

Drupal\draggableviews\Plugin\views\field

Code

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