You are here

public static function RecentlyReadRelationship::create in Recently Read 8

RecentlyReadRelationship create function.

Overrides PluginBase::create

File

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

Class

RecentlyReadRelationship
Provides a views relationship to recently read.

Namespace

Drupal\recently_read\Plugin\views\relationship

Code

public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) {
  return new static($configuration, $pluginId, $pluginDefinition, $container
    ->get('current_user'), $container
    ->get('page_cache_kill_switch'), $container
    ->get('config.storage'), $container
    ->get('session_manager'));
}