You are here

public function DiffFrom::viewsForm in Diff 8

Overrides DiffPluginBase::viewsForm

File

src/Plugin/views/field/DiffFrom.php, line 32

Class

DiffFrom
Provides View field diff from plugin.

Namespace

Drupal\diff\Plugin\views\field

Code

public function viewsForm(array &$form, FormStateInterface $form_state) {

  // Replace the form submit button label.
  $form['actions']['submit']['#value'] = $this
    ->t('Compare');
  parent::viewsForm($form, $form_state);
}