You are here

public function QuizFeedbackType::updateFromComponent in Quiz 6.x

Same name and namespace in other branches
  1. 8.6 src/Entity/QuizFeedbackType.php \Drupal\quiz\Entity\QuizFeedbackType::updateFromComponent()
  2. 8.5 src/Entity/QuizFeedbackType.php \Drupal\quiz\Entity\QuizFeedbackType::updateFromComponent()

File

src/Entity/QuizFeedbackType.php, line 82

Class

QuizFeedbackType
Defines the quiz type entity class.

Namespace

Drupal\quiz\Entity

Code

public function updateFromComponent(RulesComponent $component) {
  $this->component = $component
    ->getConfiguration();
  $this->componentObject = $component;
  return $this;
}