public function LogLocation::hasGeometry in farmOS 2.x
Check if a log has geometry.
Parameters
\Drupal\log\Entity\LogInterface $log: The Log entity.
Return value
bool Returns TRUE if the log has geometry, FALSE otherwise.
Overrides LogLocationInterface::hasGeometry
File
- modules/
core/ location/ src/ LogLocation.php, line 36
Class
- LogLocation
- Log location logic.
Namespace
Drupal\farm_locationCode
public function hasGeometry(LogInterface $log) : bool {
return !$log
->get(static::LOG_FIELD_GEOMETRY)
->isEmpty();
}