function Broken::create

Same name in other branches
  1. 10 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::create()
  2. 11.x core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::create()

Overrides ContainerFactoryPluginInterface::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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.