You are here

public static function ProviderService::create in Synonyms 2.0.x

File

src/SynonymsService/ProviderService.php, line 43

Class

ProviderService
A collection of handy provider-related methods.

Namespace

Drupal\synonyms\SynonymsService

Code

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