You are here

public function DateRecurInterpreter::setPlugin in Recurring Dates Field 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Entity/DateRecurInterpreter.php \Drupal\date_recur\Entity\DateRecurInterpreter::setPlugin()
  2. 3.x src/Entity/DateRecurInterpreter.php \Drupal\date_recur\Entity\DateRecurInterpreter::setPlugin()
  3. 3.0.x src/Entity/DateRecurInterpreter.php \Drupal\date_recur\Entity\DateRecurInterpreter::setPlugin()

Set the plugin ID.

Parameters

string $plugin_id: The plugin ID.

Overrides DateRecurInterpreterInterface::setPlugin

File

src/Entity/DateRecurInterpreter.php, line 119

Class

DateRecurInterpreter
Defines an instance of Recurring Date interpreter.

Namespace

Drupal\date_recur\Entity

Code

public function setPlugin($plugin_id) : void {
  $this->plugin = $plugin_id;
  $this
    ->getPluginCollection()
    ->addInstanceId($plugin_id);
}