You are here

protected function AddBlockForm::submitLabel in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Form/AddBlockForm.php \Drupal\layout_builder\Form\AddBlockForm::submitLabel()

Returns the label for the submit button.

Return value

string Submit label.

Overrides ConfigureBlockFormBase::submitLabel

File

core/modules/layout_builder/src/Form/AddBlockForm.php, line 30

Class

AddBlockForm
Provides a form to add a block.

Namespace

Drupal\layout_builder\Form

Code

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