You are here

public static function FlagListsFlagListBuilder::createInstance in Flag Lists 4.0.x

File

src/FlagListsFlagListBuilder.php, line 43

Class

FlagListsFlagListBuilder
Defines a class to build an enhanced listing of Flag entities.

Namespace

Drupal\flag_lists

Code

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