You are here

protected function BlockAddForm::getSubmitValue in Context 8.4

Same name and namespace in other branches
  1. 8 src/Reaction/Blocks/Form/BlockAddForm.php \Drupal\context\Reaction\Blocks\Form\BlockAddForm::getSubmitValue()
  2. 8.0 src/Reaction/Blocks/Form/BlockAddForm.php \Drupal\context\Reaction\Blocks\Form\BlockAddForm::getSubmitValue()

Get the value to use for the submit button.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup An object that, when cast to a string, returns the translated string.

Overrides BlockFormBase::getSubmitValue

File

src/Reaction/Blocks/Form/BlockAddForm.php, line 20

Class

BlockAddForm
Provides a form to add a block in the Block reaction.

Namespace

Drupal\context\Reaction\Blocks\Form

Code

protected function getSubmitValue() {
  return $this
    ->t('Add block');
}