You are here

public function FlippyPager::__construct in DXPR Theme Helper 8

Constructor.

Parameters

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event displatcher.

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory to get flippy settings.

\Drupal\Core\Language\LanguageManager: Drupal Language manager service.

File

src/FlippyPager.php, line 78

Class

FlippyPager
Defines the flippy pager service.

Namespace

Drupal\glazed_helper

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager, EventDispatcherInterface $event_dispatcher, QueryFactory $query_factory, Connection $connection, ConfigFactoryInterface $config_factory, LanguageManager $languageManager) {
  $this->entityFieldManager = $entityFieldManager;
  $this->eventDispatcher = $event_dispatcher;
  $this->nodeQuery = $query_factory
    ->get('node');
  $this->connection = $connection;
  $this->flippySettings = $config_factory
    ->get('flippy.settings');
  $this->languageManager = $languageManager;
}