You are here

public function FlippyPager::__construct in Flippy 8

Constructor.

Parameters

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

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

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

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

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

\Drupal\Core\Utility\Token $token: Drupal token service.

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

File

src/FlippyPager.php, line 89

Class

FlippyPager
Defines the flippy pager service.

Namespace

Drupal\flippy

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, Connection $connection, ConfigFactoryInterface $config_factory, Token $token, LanguageManager $languageManager) {
  $this->entityFieldManager = $entityFieldManager;
  $this->eventDispatcher = $event_dispatcher;
  $this->entityTypeManager = $entity_type_manager;
  $this->connection = $connection;
  $this->flippySettings = $config_factory
    ->get('flippy.settings');
  $this->token = $token;
  $this->languageManager = $languageManager;
}