BlockAddForm.php in Context 8.4
File
src/Reaction/Blocks/Form/BlockAddForm.php
View source
<?php
namespace Drupal\context\Reaction\Blocks\Form;
class BlockAddForm extends BlockFormBase {
public function getFormId() {
return 'context_reaction_blocks_add_block_form';
}
protected function getSubmitValue() {
return $this
->t('Add block');
}
protected function prepareBlock($block_id) {
return $this->blockManager
->createInstance($block_id);
}
}
Classes
Name |
Description |
BlockAddForm |
Provides a form to add a block in the Block reaction. |