public function PagererPresetPaneResetForm::getDescription in Pagerer 8
Same name and namespace in other branches
- 8.2 src/Form/PagererPresetPaneResetForm.php \Drupal\pagerer\Form\PagererPresetPaneResetForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides EntityConfirmFormBase::getDescription
File
- src/
Form/ PagererPresetPaneResetForm.php, line 107
Class
- PagererPresetPaneResetForm
- Form handler for Pagerer presets' panes.
Namespace
Drupal\pagerer\FormCode
public function getDescription() {
$style = $this->entity
->getPaneData($this->pane, 'style');
$plugin_definition = $this->styleManager
->getDefinition($style);
return $this
->t("The %pane pane of pager %preset_name will be reset to %style style default configuration.", [
'%preset_name' => $this->entity
->label(),
'%pane' => $this->paneLabels[$this->pane],
'%style' => !empty($plugin_definition) ? $plugin_definition['short_title'] : NULL,
]);
}