public function FullcalendarManager::createInstance in FullCalendar 8
Same name and namespace in other branches
- 8.5 src/Plugin/FullcalendarManager.php \Drupal\fullcalendar\Plugin\FullcalendarManager::createInstance()
- 8.2 src/Plugin/FullcalendarManager.php \Drupal\fullcalendar\Plugin\FullcalendarManager::createInstance()
- 8.3 src/Plugin/FullcalendarManager.php \Drupal\fullcalendar\Plugin\FullcalendarManager::createInstance()
- 8.4 src/Plugin/FullcalendarManager.php \Drupal\fullcalendar\Plugin\FullcalendarManager::createInstance()
Return value
\Drupal\fullcalendar\Plugin\FullcalendarInterface
Overrides PluginManagerBase::createInstance
File
- src/
Plugin/ FullcalendarManager.php, line 42
Class
- FullcalendarManager
- Plugin type manager for FullCalendar plugins.
Namespace
Drupal\fullcalendar\PluginCode
public function createInstance($plugin_id, array $configuration = [], $style = NULL) {
$plugin = parent::createInstance($plugin_id, $configuration);
if ($style) {
$plugin
->setStyle($style);
}
return $plugin;
}