You are here

public static function SchedulerPluginBase::create in Scheduler 2.x

Create method.

File

src/SchedulerPluginBase.php, line 16

Class

SchedulerPluginBase
Base class for scheduler plugins.

Namespace

Drupal\scheduler

Code

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