You are here

public function RuleComponent::setPluginId in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::setPluginId()
  2. 3.x src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::setPluginId()

Sets the plugin ID.

Parameters

string $plugin_id: The plugin ID.

Return value

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

Overrides RuleComponentInterface::setPluginId

File

src/Entity/RuleComponent.php, line 78

Class

RuleComponent
Defines a event rule plugin instance entity: a condition or action.

Namespace

Drupal\rng\Entity

Code

public function setPluginId($action_id) {
  $this
    ->set('action', $action_id);
  return $this;
}