You are here

public function CourseObjectNode::hasNodePrivacySupport in Course 8.3

Same name and namespace in other branches
  1. 8.2 modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::hasNodePrivacySupport()
  2. 3.x modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::hasNodePrivacySupport()
4 calls to CourseObjectNode::hasNodePrivacySupport()
CourseObjectBook::save in modules/course_book/src/Plugin/course/CourseObject/CourseObjectBook.php
Override of CourseObjectNode::save()
CourseObjectNode::optionsDefinition in modules/course_content/src/Course/Object/CourseObjectNode.php
Define configuration elements and their defaults.
CourseObjectNode::optionsForm in modules/course_content/src/Course/Object/CourseObjectNode.php
Default options form for all course objects.
CourseObjectNode::postSave in modules/course_content/src/Course/Object/CourseObjectNode.php
On object write, set privacy on this node.

File

modules/course_content/src/Course/Object/CourseObjectNode.php, line 67

Class

CourseObjectNode
A course object that uses a node as a base.

Namespace

Drupal\course_content\Course\Object

Code

public function hasNodePrivacySupport() {
  return Drupal::moduleHandler()
    ->moduleExists('content_access') && Drupal::moduleHandler()
    ->moduleExists('acl');
}