public function DateRecurInterpreter::setPlugin in Recurring Dates Field 8.2
Same name and namespace in other branches
- 3.x src/Entity/DateRecurInterpreter.php \Drupal\date_recur\Entity\DateRecurInterpreter::setPlugin()
- 3.0.x src/Entity/DateRecurInterpreter.php \Drupal\date_recur\Entity\DateRecurInterpreter::setPlugin()
- 3.1.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 113
Class
- DateRecurInterpreter
- Defines an instance of Recurring Date interpreter.
Namespace
Drupal\date_recur\EntityCode
public function setPlugin($plugin_id) : void {
$this->plugin = $plugin_id;
$this
->getPluginCollection()
->addInstanceId($plugin_id);
}