You are here

public function RulesComponentConfig::getComponent in Rules 8.3

Gets the Rules component to be edited.

Return value

\Drupal\rules\Engine\RulesComponent The Rules component.

Overrides RulesUiComponentProviderInterface::getComponent

File

src/Entity/RulesComponentConfig.php, line 135

Class

RulesComponentConfig
Rules component configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

public function getComponent() {
  if (!isset($this->componentObject)) {
    $this->componentObject = RulesComponent::createFromConfiguration($this->component);
  }
  return $this->componentObject;
}