You are here

final public function CourseHandler::addOptions in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::addOptions()
  2. 8.2 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::addOptions()

Merge an array of options onto the existing options.

Parameters

array $options:

Return value

CourseHandler Some type of CourseHandler (probably CourseObject or CourseObjectFulfillment)

File

src/Helper/CourseHandler.php, line 140

Class

CourseHandler
Master class for a course related content entity.

Namespace

Drupal\course\Helper

Code

public final function addOptions(array $options) {
  $this
    ->setOptions($this
    ->optionsMerge($this
    ->getOptions(), $options));
  return $this;
}