You are here

protected function InsertComponentForm::formTitle in Layout Paragraphs 2.0.x

Create the form title.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form title.

Overrides ComponentFormBase::formTitle

File

src/Form/InsertComponentForm.php, line 127

Class

InsertComponentForm
Class InsertComponentForm.

Namespace

Drupal\layout_paragraphs\Form

Code

protected function formTitle() {
  return $this
    ->t('Create new @type', [
    '@type' => $this->paragraph
      ->getParagraphType()
      ->label(),
  ]);
}