You are here

public function CourseContentForm::access in Opigno course 3.x

Same name and namespace in other branches
  1. 8 src/Form/CourseContentForm.php \Drupal\opigno_course\Form\CourseContentForm::access()

Check the access to this form.

1 string reference to 'CourseContentForm::access'
opigno_course.routing.yml in ./opigno_course.routing.yml
opigno_course.routing.yml

File

src/Form/CourseContentForm.php, line 65

Class

CourseContentForm
Class CourseContentForm.

Namespace

Drupal\opigno_course\Form

Code

public function access(Group $group) {
  if ($group
    ->getGroupType()
    ->id() == 'opigno_course') {
    return AccessResult::allowed();
  }
  return AccessResult::neutral();
}