function BlockForm::create

Same name in other branches
  1. 8.9.x core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::create()
  2. 10 core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::create()
  3. 11.x core/modules/block/src/BlockForm.php \Drupal\block\BlockForm::create()

Overrides FormBase::create

File

core/modules/block/src/BlockForm.php, line 104

Class

BlockForm
Provides form for block instance forms.

Namespace

Drupal\block

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager'), $container->get('plugin.manager.condition'), $container->get('context.repository'), $container->get('language_manager'), $container->get('theme_handler'), $container->get('plugin_form.factory'));
}

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