public static function SliderBlock::create in Image sliders 8
Same name in this branch
- 8 src/Plugin/Derivative/SliderBlock.php \Drupal\image_slider\Plugin\Derivative\SliderBlock::create()
- 8 src/Plugin/Block/SliderBlock.php \Drupal\image_slider\Plugin\Block\SliderBlock::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/ SliderBlock.php, line 37
Class
- SliderBlock
- Provides a form for generating multiple block.
Namespace
Drupal\image_slider\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('database'));
}