public function ExportDataPolicy::access in Data Policy 8
File
- modules/
data_policy_export/ src/ Plugin/ Action/ ExportDataPolicy.php, line 207
Class
- ExportDataPolicy
- Exports data policies to CSV.
Namespace
Drupal\data_policy_export\Plugin\ActionCode
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
/** @var \Drupal\data_policy\Entity\DataPolicyInterface $object */
// TODO Check for export access instead.
return $object
->access('view', $account, $return_as_object);
}