public function CourseContentForm::access in Opigno course 3.x
Same name and namespace in other branches
- 8 src/Form/CourseContentForm.php \Drupal\opigno_course\Form\CourseContentForm::access()
Check the access to this form.
1 string reference to 'CourseContentForm::access'
File
- src/Form/ CourseContentForm.php, line 65 
Class
- CourseContentForm
- Class CourseContentForm.
Namespace
Drupal\opigno_course\FormCode
public function access(Group $group) {
  if ($group
    ->getGroupType()
    ->id() == 'opigno_course') {
    return AccessResult::allowed();
  }
  return AccessResult::neutral();
}