You are here

public static function ForwardAccessChecker::create in Forward 8

Same name and namespace in other branches
  1. 8.3 src/ForwardAccessChecker.php \Drupal\forward\ForwardAccessChecker::create()
  2. 8.2 src/ForwardAccessChecker.php \Drupal\forward\ForwardAccessChecker::create()

File

src/ForwardAccessChecker.php, line 33

Class

ForwardAccessChecker
Defines a class for checking whether a Forward link or form can be diplayed within a given context.

Namespace

Drupal\forward

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('current_user'));
}