public static function PrintableLinksBlock::create in Printer and PDF versions for Drupal 8+ 8
Same name in this branch
- 8 src/Plugin/Derivative/PrintableLinksBlock.php \Drupal\printable\Plugin\Derivative\PrintableLinksBlock::create()
- 8 src/Plugin/Block/PrintableLinksBlock.php \Drupal\printable\Plugin\Block\PrintableLinksBlock::create()
Same name and namespace in other branches
- 2.x src/Plugin/Derivative/PrintableLinksBlock.php \Drupal\printable\Plugin\Derivative\PrintableLinksBlock::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- src/
Plugin/ Derivative/ PrintableLinksBlock.php, line 42
Class
- PrintableLinksBlock
- Local tasks plugin derivative to provide a tab for each printable format.
Namespace
Drupal\printable\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('printable.entity_manager'), $container
->get('string_translation'));
}