You are here

public static function StateChangeDeriver::create in Workbench Moderation Actions 8

Creates a new class instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.

string $base_plugin_id: The base plugin ID for the plugin ID.

Return value

static Returns an instance of this fetcher.

Overrides ContainerDeriverInterface::create

1 call to StateChangeDeriver::create()
workbench_moderation_actions_install in ./workbench_moderation_actions.install
Implements hook_install().

File

src/Plugin/Deriver/StateChangeDeriver.php, line 49

Class

StateChangeDeriver
Derives which moderation states are available.

Namespace

Drupal\workbench_moderation_actions\Plugin\Deriver

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($container
    ->get('workbench_moderation.moderation_information'), $container
    ->get('entity_type.manager'));
}