You are here

public function JsonapiResourceConfigListBuilder::__construct in JSON:API Extras 8

Same name and namespace in other branches
  1. 8.3 src/JsonapiResourceConfigListBuilder.php \Drupal\jsonapi_extras\JsonapiResourceConfigListBuilder::__construct()
  2. 8.2 src/JsonapiResourceConfigListBuilder.php \Drupal\jsonapi_extras\JsonapiResourceConfigListBuilder::__construct()

Constructs new JsonapiResourceConfigListBuilder.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Drupal\Core\Entity\EntityStorageInterface $storage: The storage.

\Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository $resource_type_repository: The JSON API configurable resource type repository.

\Drupal\Core\Config\ImmutableConfig $config: The config instance.

Overrides EntityListBuilder::__construct

File

src/JsonapiResourceConfigListBuilder.php, line 44

Class

JsonapiResourceConfigListBuilder
Provides a listing of JSON API Resource Config entities.

Namespace

Drupal\jsonapi_extras

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ConfigurableResourceTypeRepository $resource_type_repository, ImmutableConfig $config) {
  parent::__construct($entity_type, $storage);
  $this->resourceTypeRepository = $resource_type_repository;
  $this->config = $config;
}