public function EntityReverse::init

Init handler to let relationships live on tables other than the table they operate on.

Overrides RelationshipPluginBase::init

File

drupal/core/modules/field/lib/Drupal/field/Plugin/views/relationship/EntityReverse.php, line 26
Definition of Drupal\field\Plugin\views\relationship\EntityReverse.

Class

EntityReverse
A relationship handlers which reverse entity references.

Namespace

Drupal\field\Plugin\views\relationship

Code

public function init(ViewExecutable $view, &$options) {
  parent::init($view, $options);
  $this->field_info = field_info_field($this->definition['field_name']);
}