BlockAddForm.php in Context 8
Same filename and directory in other branches
Namespace
Drupal\context\Reaction\Blocks\FormFile
src/Reaction/Blocks/Form/BlockAddForm.phpView source
<?php
namespace Drupal\context\Reaction\Blocks\Form;
use Drupal\Core\StringTranslation\TranslatableMarkup;
class BlockAddForm extends BlockFormBase {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'context_reaction_blocks_add_block_form';
}
/**
* {@inheritdoc}
*/
protected function getSubmitValue() {
return $this
->t('Add block');
}
/**
* {@inheritdoc}
*/
protected function prepareBlock($block_id) {
return $this->blockManager
->createInstance($block_id);
}
}
Classes
Name | Description |
---|---|
BlockAddForm |