You are here

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

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/CustomBreadcrumbsStatusForm.php, line 17

Class

CustomBreadcrumbsStatusForm
Class: ModalPublishedForm.

Namespace

Drupal\custom_breadcrumbs\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to %status the %label breadcrumb?', [
    '%status' => $this->entity
      ->status() ? "disable" : "enable",
    '%label' => $this->entity
      ->get('label'),
  ]);
}