You are here

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

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

Set this entire handler's options.

Deserialize the serialized column if necessary.

Parameters

array $options: An array of options.

Return value

CourseHandler

1 call to CourseHandler::setOptions()
CourseHandler::addOptions in src/Helper/CourseHandler.php
Merge an array of options onto the existing options.

File

src/Helper/CourseHandler.php, line 125

Class

CourseHandler
Master class for a course related content entity.

Namespace

Drupal\course\Helper

Code

public final function setOptions($options) {
  foreach ($options as $key => $option) {
    $this
      ->setOption($key, $option);
  }
}