public function CourseHandler::getOptionsSummary in Course 3.x
Same name and namespace in other branches
- 8.3 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::getOptionsSummary()
- 8.2 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::getOptionsSummary()
Get the summary of an object's options.
Return value
array An associative array of summary keys and values.
1 call to CourseHandler::getOptionsSummary()
- CourseObject::getOptionsSummary in src/
Entity/ CourseObject.php - Get core options summary.
1 method overrides CourseHandler::getOptionsSummary()
- CourseObject::getOptionsSummary in src/
Entity/ CourseObject.php - Get core options summary.
File
- src/
Helper/ CourseHandler.php, line 24
Class
- CourseHandler
- Master class for a course related content entity.
Namespace
Drupal\course\HelperCode
public function getOptionsSummary() {
$summary = array();
foreach ($this
->getWarnings() as $warning) {
$warning = '<span class="error">' . $warning . '</span>';
$summary['warnings'] = Xss::filterAdmin($warning);
}
return $summary;
}