You are here

public function EdgeEntityListBuilder::__construct in Apigee Edge 8

EdgeEntityListBuilder constructor.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides EntityListBuilder::__construct

1 call to EdgeEntityListBuilder::__construct()
AppListBuilder::__construct in src/Entity/ListBuilder/AppListBuilder.php
AppListBuilder constructor.
1 method overrides EdgeEntityListBuilder::__construct()
AppListBuilder::__construct in src/Entity/ListBuilder/AppListBuilder.php
AppListBuilder constructor.

File

src/Entity/ListBuilder/EdgeEntityListBuilder.php, line 72

Class

EdgeEntityListBuilder
Default entity list builder for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory = NULL) {
  parent::__construct($entity_type, $entity_type_manager
    ->getStorage($entity_type
    ->id()));
  $this->entityTypeManager = $entity_type_manager;
  if (!$config_factory) {
    $config_factory = \Drupal::service('config.factory');
  }
  $this->configFactory = $config_factory;

  // Disable pager for now for all Apigee Edge entities.
  $this->limit = 0;
}