public function AlphaPagination::__construct in Views Alpha Pagination 8.2
Contructs the AlphaPagination object.
Parameters
\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: The Entity Field Manager Interface.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The ModuleHander Interface.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend service.
\Drupal\Component\Transliteration\TransliterationInterface $transliteration: A PHPTransliteration object.
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Core\Utility\Token $token: The token service.
File
- src/
AlphaPagination.php, line 104
Class
- AlphaPagination
- A base views handler for alpha pagination.
Namespace
Drupal\alpha_paginationCode
public function __construct(EntityFieldManagerInterface $field_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, TransliterationInterface $transliteration, Connection $database, Token $token) {
$this->fieldManager = $field_manager;
$this->language = $language_manager
->getCurrentLanguage()
->getId();
$this->moduleHandler = $module_handler;
$this->cacheBackend = $cache_backend;
$this->transliteration = $transliteration;
$this->database = $database;
$this->token = $token;
}