You are here

public static function Broken::create in Drupal 10

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::create()

File

core/lib/Drupal/Core/Block/Plugin/Block/Broken.php, line 55

Class

Broken
Defines a fallback plugin for missing block plugins.

Namespace

Drupal\Core\Block\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('current_user'));
}