You are here

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_location

Code

public function getGeometry(LogInterface $log) : string {
  return $log
    ->get(static::LOG_FIELD_GEOMETRY)->value ?? '';
}