You are here

public function ViewDisplays::__construct in EVA: Entity Views Attachment 8.2

Create a ViewDisplays helper class.

Parameters

Drupal\Core\Cache\CacheBackendInterface $default_cache: Cache service.

Drupal\Core\Cache\CacheBackendInterface $render_cache: Render cache service.

Drupal\Core\Config\ConfigFactoryInterface $config_factory: Configuration service.

File

src/ViewDisplays.php, line 53

Class

ViewDisplays
EVA utiltity service.

Namespace

Drupal\eva

Code

public function __construct(CacheBackendInterface $default_cache, CacheBackendInterface $render_cache, ConfigFactoryInterface $config_factory) {
  $this->defaultCache = $default_cache;
  $this->renderCache = $render_cache;
  $this->configFactory = $config_factory;
}