You are here

public function ViewModeAccessCheck::__construct in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Access/ViewModeAccessCheck.php \Drupal\panelizer\Access\ViewModeAccessCheck::__construct()
  2. 8.4 src/Access/ViewModeAccessCheck.php \Drupal\panelizer\Access\ViewModeAccessCheck::__construct()

ViewModeAccessCheck constructor.

Parameters

\Drupal\field_ui\Access\ViewModeAccessCheck $access_check:

File

src/Access/ViewModeAccessCheck.php, line 28

Class

ViewModeAccessCheck
An access check as an adapter around field_ui's custom access check.

Namespace

Drupal\panelizer\Access

Code

public function __construct(FieldUIViewModeAccessCheck $access_check) {
  $this->accessCheck = $access_check;
}