public function PreprocessorBase::setField in Geocoder 8.3
Same name and namespace in other branches
- 8.2 modules/geocoder_field/src/PreprocessorBase.php \Drupal\geocoder_field\PreprocessorBase::setField()
Sets the field that needs to be preprocessed.
Parameters
\Drupal\Core\Field\FieldItemListInterface $field: The field that needs to be preprocessed.
Return value
$this
Overrides PreprocessorInterface::setField
File
- modules/
geocoder_field/ src/ PreprocessorBase.php, line 50
Class
- PreprocessorBase
- Base class for the Preprocessor plugin.
Namespace
Drupal\geocoder_fieldCode
public function setField(FieldItemListInterface $field) {
$this->field = $field;
return $this;
}