function HistoryUserTimestamp::create

Same name and namespace in other branches
  1. 11.x core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php \Drupal\history\Plugin\views\filter\HistoryUserTimestamp::create()

Overrides PluginBase::create

File

core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php, line 53

Class

HistoryUserTimestamp
Filter for new content.

Namespace

Drupal\history\Plugin\views\filter

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('datetime.time'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.