controller->id, $this->close)){ return 'noindex, nofollow'; } if (array_search(\Yii::$app->request->pathInfo, $this->close)){ return 'noindex, nofollow'; } if (!empty($this->robots)) { return $this->robots; } if (!empty($this->alias) && !empty($this->alias->getRobots())) { return $this->alias->getRobots(); } return 'index,follow'; } }