AddNodeBlock.php in Quick Node Block 8
File
src/Controller/AddNodeBlock.php
View source
<?php
namespace Drupal\quick_node_block\Controller;
use Drupal\Core\Controller\ControllerBase;
class AddNodeBlock extends ControllerBase {
public function blockAddConfigureForm($plugin_id = 'quick_node_block', $theme = '') {
$entity = $this
->entityTypeManager()
->getStorage('block')
->create([
'plugin' => $plugin_id,
'theme' => $theme,
]);
return $this
->entityFormBuilder()
->getForm($entity);
}
}
Classes
Name |
Description |
AddNodeBlock |
Controller for building the block instance add form. |