You are here

public function FileTypeEnableForm::getQuestion in File Entity (fieldable files) 8.2

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/FileTypeEnableForm.php, line 18

Class

FileTypeEnableForm
Builds the form to enable a file type.

Namespace

Drupal\file_entity\Form

Code

public function getQuestion() {
  return t('Are you sure you want to enable the file type %name?', array(
    '%name' => $this->entity
      ->label(),
  ));
}