You are here

public function VboExportBase::access in VBO export 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Action/VboExportBase.php \Drupal\vbo_export\Plugin\Action\VboExportBase::access()
  2. 8 src/Plugin/Action/VboExportBase.php \Drupal\vbo_export\Plugin\Action\VboExportBase::access()

File

src/Plugin/Action/VboExportBase.php, line 161

Class

VboExportBase
Base class for export actions.

Namespace

Drupal\vbo_export\Plugin\Action

Code

public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
  $access = $object
    ->access('view', $account, TRUE);
  return $access
    ->isAllowed();
}