You are here

protected function DiffFrom::getToFieldId in Diff 8

Returns the diff_to field ID.

Return value

string|null The diff_to field ID, or null if the field was not found on the view.

1 call to DiffFrom::getToFieldId()
DiffFrom::viewsFormSubmit in src/Plugin/views/field/DiffFrom.php
Submit handler for the bulk form.

File

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

Class

DiffFrom
Provides View field diff from plugin.

Namespace

Drupal\diff\Plugin\views\field

Code

protected function getToFieldId() {
  foreach ($this->view->field as $id => $field) {
    if ($field instanceof DiffTo) {
      return $id;
    }
  }
}