You are here

public function RuleComponentInterface::setType in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/RuleComponentInterface.php \Drupal\rng\Entity\RuleComponentInterface::setType()

Sets the component type.

Parameters

string $type: The type of component: 'action' or 'condition'.

Return value

\Drupal\rng\Entity\RuleComponentInterface Return this object for chaining.

1 method overrides RuleComponentInterface::setType()
RuleComponent::setType in src/Entity/RuleComponent.php
Sets the component type.

File

src/Entity/RuleComponentInterface.php, line 45

Class

RuleComponentInterface
Provides an interface for rule component entities.

Namespace

Drupal\rng\Entity

Code

public function setType($type);