You are here

public static function ShortenBlock::create in Shorten URLs 8.2

File

src/Plugin/Block/ShortenBlock.php, line 52

Class

ShortenBlock
Provides a 'Shorten URL' block.

Namespace

Drupal\shorten\Plugin\Block

Code

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