public function RuleComponentInterface::setType in RNG - Events and Registrations 8
Sets the component type.
Parameters
string $type: The type of component: 'action' or 'condition'.
Return value
\Drupal\rng\RuleComponentInterface Return this object for chaining.
1 method overrides RuleComponentInterface::setType()
- RuleComponent::setType in src/
Entity/ RuleComponent.php - Sets the component type.
File
- src/
RuleComponentInterface.php, line 45
Class
- RuleComponentInterface
- Provides an interface for rule component entities.
Namespace
Drupal\rngCode
public function setType($type);