You are here

protected function ConditionAddForm::submitMessageText in Block Visibility Groups 8

Returns the text to use for the submit message.

Return value

string The submit message text.

Overrides ConditionFormBase::submitMessageText

File

src/Form/ConditionAddForm.php, line 67

Class

ConditionAddForm
Provides a form for adding a new condition.

Namespace

Drupal\block_visibility_groups\Form

Code

protected function submitMessageText() {
  return $this
    ->t('The %label condition has been added.', [
    '%label' => $this->condition
      ->getPluginDefinition()['label'],
  ]);
}