You are here

public function CourseObject::renderOptionsSummary in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::renderOptionsSummary()
  2. 3.x src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::renderOptionsSummary()

Get all course object implementations of getOptionsSummary().

@todo need plugins

File

src/Entity/CourseObject.php, line 437

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public function renderOptionsSummary() {
  $summary = $this
    ->getOptionsSummary();
  $out = [];
  foreach ($summary as $key => $item) {
    $out[$key]['#markup'] = $item;
  }
  return $out;
}