You are here

public function LogLocation::setGeometry in farmOS 2.x

Set a log's geometry.

Parameters

\Drupal\log\Entity\LogInterface $log: The Log entity.

string $wkt: The geometry as a WKT string.

Overrides LogLocationInterface::setGeometry

File

modules/core/location/src/LogLocation.php, line 66

Class

LogLocation
Log location logic.

Namespace

Drupal\farm_location

Code

public function setGeometry(LogInterface $log, string $wkt) : void {
  $log->{static::LOG_FIELD_GEOMETRY}->value = $wkt;
}