You are here

public function AppListBuilder::__construct in Apigee Edge 8

AppListBuilder constructor.

Parameters

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

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

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack object.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

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

\Drupal\apigee_edge\Entity\AppWarningsCheckerInterface $app_warnings_checker: The app warnings checker service.

Overrides EdgeEntityListBuilder::__construct

2 calls to AppListBuilder::__construct()
DeveloperAppListBuilderForDeveloper::__construct in src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php
DeveloperAppListBuilderForDeveloper constructor.
TeamAppListByTeam::__construct in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListByTeam.php
TeamAppListByTeam constructor.
2 methods override AppListBuilder::__construct()
DeveloperAppListBuilderForDeveloper::__construct in src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php
DeveloperAppListBuilderForDeveloper constructor.
TeamAppListByTeam::__construct in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListByTeam.php
TeamAppListByTeam constructor.

File

src/Entity/ListBuilder/AppListBuilder.php, line 97

Class

AppListBuilder
General app list builder for developer and team apps.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, RequestStack $request_stack, TimeInterface $time, ConfigFactoryInterface $config_factory = NULL, AppWarningsCheckerInterface $app_warnings_checker = NULL) {
  if (!$config_factory) {
    $config_factory = \Drupal::service('config.factory');
  }
  if (!$app_warnings_checker) {
    @trigger_error('Calling ' . __METHOD__ . ' without the $app_warnings_checker is deprecated in apigee_edge:8-x-1.18 and is required before apigee_edge:8.x-2.0. See https://github.com/apigee/apigee-edge-drupal/pull/507', E_USER_DEPRECATED);
    $app_warnings_checker = \Drupal::service('apigee_edge.entity.app_warnings_checker');
  }
  parent::__construct($entity_type, $entity_type_manager, $config_factory);
  $this->renderer = $renderer;
  $this->entityTypeManager = $entity_type_manager;
  $this->requestStack = $request_stack;
  $this->time = $time;
  $this->appWarningsChecker = $app_warnings_checker;
}