Same filename and directory in other branches
- 8.9.x core/modules/block/src/Controller/BlockAddController.php
- 9 core/modules/block/src/Controller/BlockAddController.php
Namespace
Drupal\block\Controller
File
core/modules/block/src/Controller/BlockAddController.php
View source
<?php
namespace Drupal\block\Controller;
use Drupal\Core\Controller\ControllerBase;
class BlockAddController extends ControllerBase {
public function blockAddConfigureForm($plugin_id, $theme) {
$entity = $this
->entityTypeManager()
->getStorage('block')
->create([
'plugin' => $plugin_id,
'theme' => $theme,
]);
return $this
->entityFormBuilder()
->getForm($entity);
}
}
Classes