You are here

public function RulesComponentConfig::updateFromComponent in Rules 8.3

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/RulesComponentConfig.php, line 145

Class

RulesComponentConfig
Rules component configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

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