You are here

public static function ForwardLinkBuilder::create in Forward 8

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

File

src/ForwardLinkBuilder.php, line 57

Class

ForwardLinkBuilder
Defines a class for building markup for a Forward link on an entity.

Namespace

Drupal\forward

Code

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