You are here

public function RecentlyReadRelationship::__construct in Recently Read 8

RecentlyReadRelationship constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $pluginId: The plugin_id for the plugin instance.

mixed $pluginDefinition: The plugin implementation definition.

\Drupal\Core\Session\AccountProxy $currentUser: The current user service.

\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $killSwitch: The page_cache_kill_switch service.

\Drupal\Core\Config\CachedStorage $cachedStorage: The config.storage service.

\Drupal\Core\Session\SessionManager $sessionManager: The session_manager service.

Overrides HandlerBase::__construct

File

src/Plugin/views/relationship/RecentlyReadRelationship.php, line 66

Class

RecentlyReadRelationship
Provides a views relationship to recently read.

Namespace

Drupal\recently_read\Plugin\views\relationship

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, AccountProxy $currentUser, KillSwitch $killSwitch, CachedStorage $cachedStorage, SessionManager $sessionManager) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->currentUser = $currentUser;
  $this->killSwitch = $killSwitch;
  $this->cachedStorage = $cachedStorage;
  $this->sessionManager = $sessionManager;
}