protected function DataProviderBase::getFieldItemsFromViewsRow in Geolocation Field 8.3
3 calls to DataProviderBase::getFieldItemsFromViewsRow()
- DataProviderBase::getLocationsFromViewsRow in src/
DataProviderBase.php - Get locations from views row.
- DataProviderBase::getPositionsFromViewsRow in src/
DataProviderBase.php - Get positions from views row.
- DataProviderBase::getShapesFromViewsRow in src/
DataProviderBase.php - Get shapes from views row.
File
- src/
DataProviderBase.php, line 256
Class
- DataProviderBase
- Class DataProviderBase.
Namespace
Drupal\geolocationCode
protected function getFieldItemsFromViewsRow(ResultRow $row, FieldPluginBase $viewsField = NULL) {
if (empty($viewsField)) {
if (empty($this->viewsField)) {
return [];
}
$viewsField = $this->viewsField;
}
$entity = $viewsField
->getEntity($row);
if (empty($entity->{$viewsField->definition['field_name']})) {
return [];
}
return $entity->{$viewsField->definition['field_name']};
}