You are here

public function Course::accessMultiple in Course 3.x

Get all access results.

Return value

AccessResult[]

File

src/Entity/Course.php, line 528

Class

Course
Defines the Course entity class.

Namespace

Drupal\course\Entity

Code

public function accessMultiple($operation, AccountInterface $account = NULL) {
  if ($account == NULL) {
    $account = \Drupal::currentUser();
  }
  return \Drupal::moduleHandler()
    ->invokeAll('course_access', [
    $this,
    $operation,
    $account,
  ]);
}