public function LogLocation::getGeometry in farmOS 2.x
Get a log's geometry.
Parameters
\Drupal\log\Entity\LogInterface $log: The Log entity.
Return value
string Returns a WKT string.
Overrides LogLocationInterface::getGeometry
File
- modules/
core/ location/ src/ LogLocation.php, line 50
Class
- LogLocation
- Log location logic.
Namespace
Drupal\farm_locationCode
public function getGeometry(LogInterface $log) : string {
return $log
->get(static::LOG_FIELD_GEOMETRY)->value ?? '';
}