/** @inheritdoc **/ public function __construct() { $title = $this->getTitle(); if ($title->inNamespace(NS_USER) && !$title->isSubpage()) { $pageUserId = User::idFromName($title->getText()); if ($pageUserId) { $this->pageUser = User::newFromId($pageUserId); $this->isUserPage = true; } } parent::__construct(); }