You are here

public static function ForwardLinkGenerator::create in Forward 4.x

Same name and namespace in other branches
  1. 4.0.x src/Services/ForwardLinkGenerator.php \Drupal\forward\Services\ForwardLinkGenerator::create()

File

src/Services/ForwardLinkGenerator.php, line 57

Class

ForwardLinkGenerator
Defines a class for generating a Forward link on an entity.

Namespace

Drupal\forward\Services

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('link_generator'), $container
    ->get('token'), $container
    ->get('renderer'));
}