public function getOrderedFields(ContentTypeInterface $contentType)
    {
        return $this->om->getRepository($this->configurationManager->getEntityClass('field'))
            ->findBy(['contentType' => $contentType], ['sortOrder' => 'ASC']);
    }
public function getOrderedFields(ContentTypeInterface $contentType)
    {
        return $this->om->getRepository($this->configurationManager->getEntityClass('field'))
            ->findBy(['contentType' => $contentType], ['sortOrder' => 'ASC']);
    }
public function getOrderedFields ( ContentTypeInterface $ contentType ) { return $ this -> om -> getRepository ( $ this -> configurationManager -> getEntityClass ( 'field' ) ) -> findBy ( [ 'contentType' => $ contentType ] , [ 'sortOrder' => 'ASC' ] ) ; }
Get content type ordered fields

@param ContentTypeInterface $contentType

@return FieldInterface[]
Get content type ordered fields