function BlockForm::create

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

Overrides FormBase::create

File

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

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'), $container->get('block.repository'));
}

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