You are here

public static function Generic::create in Add to Cal 8

@inheritdoc

Overrides AddToCalTypeBase::create

File

src/Plugin/AddToCal/Type/Generic.php, line 52

Class

Generic
Provides generic calendar type (ics).

Namespace

Drupal\addtocal\Plugin\AddToCal\Type

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('date.formatter'), $container
    ->get('file_system'));
}