public function getContentTypeById($id)
    {
        return $this->om->getRepository($this->configurationManager->getEntityClass('content_type'))->find($id);
    }
public function getContentTypeById($id)
    {
        return $this->om->getRepository($this->configurationManager->getEntityClass('content_type'))->find($id);
    }
public function getContentTypeById ( $ id ) { return $ this -> om -> getRepository ( $ this -> configurationManager -> getEntityClass ( 'content_type' ) ) -> find ( $ id ) ; }
Get content type by its id

@param int $id

@return null|ContentTypeInterface
Get content type by its id