public function CourseContentForm::access in Opigno course 8
Same name and namespace in other branches
- 3.x 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();
}