public function getNamespaceByCanonicalName( $canonicalName ) {
		$result = $this->getNamespaceResult()['query'];
		foreach ( $result['namespaces'] as $nsInfo ) {
			if ( !empty( $nsInfo['canonical'] ) && $nsInfo['canonical'] === $canonicalName ) {
				return $this->createNamespaceFromQuery( $nsInfo, $result['namespacealiases'] );
			}
		}
		return null;
	}
public function getNamespaceByCanonicalName( $canonicalName ) {
		$result = $this->getNamespaceResult()['query'];
		foreach ( $result['namespaces'] as $nsInfo ) {
			if ( !empty( $nsInfo['canonical'] ) && $nsInfo['canonical'] === $canonicalName ) {
				return $this->createNamespaceFromQuery( $nsInfo, $result['namespacealiases'] );
			}
		}
		return null;
	}
public function getNamespaceByCanonicalName ( $ canonicalName ) { $ result = $ this -> getNamespaceResult ( ) [ 'query' ] ; foreach ( $ result [ 'namespaces' ] as $ nsInfo ) { if ( ! empty ( $ nsInfo [ 'canonical' ] ) && $ nsInfo [ 'canonical' ] === $ canonicalName ) { return $ this -> createNamespaceFromQuery ( $ nsInfo , $ result [ 'namespacealiases' ] ) ; } } return null ; }
Find a namespace by its canonical name

@param string $canonicalName
@return NamespaceInfo|null
Find a namespace by its canonical name