Smalyshev added a comment.

  EntityIdLookup has:
  
        public function getEntityIdForTitle( Title $title );
  
  but I am not sure how it's supposed to work since it does not have slot ID or 
anything like that as a parameter... And the main implementation does:
  
                $contentModel = $title->getContentModel();
    
                try {
                        $handler = $this->getEntityHandlerForContentModel( 
$contentModel );
                        return $handler->getIdForTitle( $title );
  
  which would probably not work since the content model for File pages is 
wikitext.

TASK DETAIL
  https://phabricator.wikimedia.org/T222299

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Smalyshev
Cc: Jdforrester-WMF, matthiasmullie, Cparle, daniel, Lucas_Werkmeister_WMDE, 
Tpt, Addshore, Ramsey-WMF, Aklapper, Smalyshev, alaa_wmde, Nandana, JKSTNK, 
Lahi, PDrouin-WMF, Gq86, E1presidente, Anooprao, SandraF_WMF, 
GoranSMilovanovic, QZanden, EBjune, Tramullas, Acer, merbst, LawExplorer, 
Salgo60, Silverfish, Poyekhali, _jensen, rosalieper, Jonas, Xmlizer, 
Susannaanas, Wong128hk, Jane023, jkroll, Wikidata-bugs, Jdouglas, Base, aude, 
Tobias1984, El_Grafo, Dinoguy1000, Manybubbles, Ricordisamoa, Wesalius, 
Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331, Keegan
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to