finder = $dataFinder; } public function getName() { return Piwik::translate('Tour_AddSegment'); } public function getDescription() { return Piwik::translate('SegmentEditor_PluginDescription'); } public function getId() { return 'add_segment'; } public function isCompleted() { if (!isset($this->completed)) { $login = Piwik::getCurrentUserLogin(); $this->completed = $this->finder->hasAddedSegment($login); } return $this->completed; } public function getUrl() { return 'https://matomo.org/docs/segmentation/'; } }