function ReactionRuleConfig::updateFromComponent

Updates the configuration based upon the given component.

Parameters

\Drupal\rules\Engine\RulesComponent $component: The component containing the configuration to set.

Return value

$this

Overrides RulesUiComponentProviderInterface::updateFromComponent

File

src/Entity/ReactionRuleConfig.php, line 171

Class

ReactionRuleConfig
Reaction rule configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

public function updateFromComponent(RulesComponent $component) {
  // Note that the available context definitions stem from the configured
  // events, which are handled separately.
  $this->setExpression($component->getExpression());
  return $this;
}