public function RuleComponent::setType in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::setType()
- 3.x src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::setType()
Sets the component type.
Parameters
string $type: The type of component: 'action' or 'condition'.
Return value
\Drupal\rng\RuleComponentInterface Return this object for chaining.
Overrides RuleComponentInterface::setType
File
- src/
Entity/ RuleComponent.php, line 63
Class
- RuleComponent
- Defines a event rule plugin instance entity: a condition or action.
Namespace
Drupal\rng\EntityCode
public function setType($type) {
$this
->set('type', $type);
return $this;
}