/** * Get string to display this dataset value * @param \Runalyze\Dataset\Context $context * @return string */ public function stringFor(Context $context) { if ($context->activity()->get(Activity\Entity::ROUTEID) > 0) { return \Helper::Cut($context->factory()->route($context->activity()->get(Activity\Entity::ROUTEID))->name(), self::DEFAULT_CUT); } return ''; }