public static function DraggableBlockDeriver::create in Draggable dashboard 8.2
Same name and namespace in other branches
- 8 src/Plugin/Block/DraggableBlockDeriver.php \Drupal\draggable_dashboard\Plugin\Block\DraggableBlockDeriver::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/ Block/ DraggableBlockDeriver.php, line 19
Class
- DraggableBlockDeriver
- This deriver creates a block for every dashboard that has been created.
Namespace
Drupal\draggable_dashboard\Plugin\BlockCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static();
}