You are here

public static function ModerationStateTransitionListBuilder::createInstance in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/ModerationStateTransitionListBuilder.php \Drupal\workbench_moderation\ModerationStateTransitionListBuilder::createInstance()

@inheritDoc

Overrides EntityListBuilder::createInstance

File

src/ModerationStateTransitionListBuilder.php, line 24

Class

ModerationStateTransitionListBuilder
Provides a listing of Moderation state transition entities.

Namespace

Drupal\workbench_moderation

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
  return new static($entity_type, $container
    ->get('entity.manager')
    ->getStorage($entity_type
    ->id()), $container
    ->get('entity.manager')
    ->getStorage('moderation_state'));
}