public function DateRecurInterpreter::setPlugin in Recurring Dates Field 3.x
Same name and namespace in other branches
- 8.2 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 119
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);
}