getPageStore() ->newSelectQueryBuilder() ->wherePageIds( $lookups ) ->caller( __METHOD__ ) ->fetchPageRecords(); /** @var PageRecord $title */ foreach ( $titles as $title ) { $title = MediaWikiServices::getInstance()->getTitleFactory()->castFromPageIdentity( $title ); yield $title->getArticleID() => $title; } } } }