public function CclService::__construct in Custom Contextual Links 8.2
CclService constructor.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Inject cache backend service.
\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $event_dispatcher: Inject event dispatcher service.
\Drupal\Core\Utility\Token $token: Inject token service.
File
- src/
CclService.php, line 46
Class
- CclService
- Class CclService.
Namespace
Drupal\cclCode
public function __construct(CacheBackendInterface $cache_backend, EventDispatcher $event_dispatcher, Token $token) {
$this->cache = $cache_backend;
$this->eventDispatcher = $event_dispatcher;
$this->token = $token;
}