You are here

public static function ForwardLink::create in Forward 8

Same name in this branch
  1. 8 src/Plugin/DsField/ForwardLink.php \Drupal\forward\Plugin\DsField\ForwardLink::create()
  2. 8 src/Plugin/views/field/ForwardLink.php \Drupal\forward\Plugin\views\field\ForwardLink::create()
Same name and namespace in other branches
  1. 8.3 src/Plugin/DsField/ForwardLink.php \Drupal\forward\Plugin\DsField\ForwardLink::create()
  2. 8.2 src/Plugin/DsField/ForwardLink.php \Drupal\forward\Plugin\DsField\ForwardLink::create()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

static

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/DsField/ForwardLink.php, line 72

Class

ForwardLink
Forward link plugin.

Namespace

Drupal\forward\Plugin\DsField

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('forward.access_checker'), $container
    ->get('forward.link_builder'), $container
    ->get('config.factory'));
}