ConditionEditForm.php in Block Visibility Groups 8
File
src/Form/ConditionEditForm.php
View source
<?php
namespace Drupal\block_visibility_groups\Form;
class ConditionEditForm extends ConditionFormBase {
public function getFormId() {
return 'block_visibility_group_manager_condition_edit_form';
}
protected function prepareCondition($condition_id) {
return $this->block_visibility_group
->getCondition($condition_id);
}
protected function submitButtonText() {
return $this
->t('Update condition');
}
protected function submitMessageText() {
return $this
->t('The %label condition has been updated.', [
'%label' => $this->condition
->getPluginDefinition()['label'],
]);
}
}