You are here

protected function EditComponentForm::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/EditComponentForm.php, line 55

Class

EditComponentForm
Class LayoutParagraphsComponentEditForm.

Namespace

Drupal\layout_paragraphs\Form

Code

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