You are here

public function CustomBreadcrumbsStatusForm::getDescription in Custom Breadcrumbs 1.x

Returns additional text to display as a description.

Return value

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

Overrides EntityConfirmFormBase::getDescription

File

src/Form/CustomBreadcrumbsStatusForm.php, line 27

Class

CustomBreadcrumbsStatusForm
Class: ModalPublishedForm.

Namespace

Drupal\custom_breadcrumbs\Form

Code

public function getDescription() {
  return $this
    ->t('This action will %status the %label breadcrumb.', [
    '%status' => $this->entity
      ->status() ? "disable" : "enable",
    '%label' => $this->entity
      ->get('label'),
  ]);
}