Controller/ArticleController.php
protected function getFieldDescriptors()
    {
        return [
            'uuid' => ElasticSearchFieldDescriptor::create('id', 'public.id')
                ->setDisabled(true)
                ->build(),
            'typeTranslation' => ElasticSearchFieldDescriptor::create('typeTranslation', 'sulu_article.list.type')
                ->setSortField('typeTranslation.raw')
                ->setDisabled(!$this->getParameter('sulu_article.display_tab_all'))
                ->build(),
            'title' => ElasticSearchFieldDescriptor::create('title', 'public.title')
                ->setSortField('title.raw')
                ->build(),
            'creatorFullName' => ElasticSearchFieldDescriptor::create('creatorFullName', 'sulu_article.list.creator')
                ->setSortField('creatorFullName.raw')
                ->build(),
            'changerFullName' => ElasticSearchFieldDescriptor::create('changerFullName', 'sulu_article.list.changer')
                ->setSortField('changerFullName.raw')
                ->build(),
            'authorFullName' => ElasticSearchFieldDescriptor::create('authorFullName', 'sulu_article.author')
                ->setSortField('authorFullName.raw')
                ->build(),
            'created' => ElasticSearchFieldDescriptor::create('created', 'public.created')
                ->setSortField('authored')
                ->setType('datetime')
                ->setDisabled(true)
                ->build(),
            'changed' => ElasticSearchFieldDescriptor::create('changed', 'public.changed')
                ->setSortField('authored')
                ->setType('datetime')
                ->setDisabled(true)
                ->build(),
            'authored' => ElasticSearchFieldDescriptor::create('authored', 'sulu_article.authored')
                ->setSortField('authored')
                ->setType('datetime')
                ->build(),
            'localizationState' => ElasticSearchFieldDescriptor::create('localizationState')
                ->setDisabled(true)
                ->build(),
            'published' => ElasticSearchFieldDescriptor::create('published')
                ->setDisabled(true)
                ->build(),
            'publishedState' => ElasticSearchFieldDescriptor::create('publishedState')
                ->setDisabled(true)
                ->build(),
            'routePath' => ElasticSearchFieldDescriptor::create('routePath')
                ->setDisabled(true)
                ->build(),
        ];
    }
protected function getFieldDescriptors()
    {
        return [
            'uuid' => ElasticSearchFieldDescriptor::create('id', 'public.id')
                ->setDisabled(true)
                ->build(),
            'typeTranslation' => ElasticSearchFieldDescriptor::create('typeTranslation', 'sulu_article.list.type')
                ->setSortField('typeTranslation.raw')
                ->setDisabled(!$this->getParameter('sulu_article.display_tab_all'))
                ->build(),
            'title' => ElasticSearchFieldDescriptor::create('title', 'public.title')
                ->setSortField('title.raw')
                ->build(),
            'creatorFullName' => ElasticSearchFieldDescriptor::create('creatorFullName', 'sulu_article.list.creator')
                ->setSortField('creatorFullName.raw')
                ->build(),
            'changerFullName' => ElasticSearchFieldDescriptor::create('changerFullName', 'sulu_article.list.changer')
                ->setSortField('changerFullName.raw')
                ->build(),
            'authorFullName' => ElasticSearchFieldDescriptor::create('authorFullName', 'sulu_article.author')
                ->setSortField('authorFullName.raw')
                ->build(),
            'created' => ElasticSearchFieldDescriptor::create('created', 'public.created')
                ->setSortField('authored')
                ->setType('datetime')
                ->setDisabled(true)
                ->build(),
            'changed' => ElasticSearchFieldDescriptor::create('changed', 'public.changed')
                ->setSortField('authored')
                ->setType('datetime')
                ->setDisabled(true)
                ->build(),
            'authored' => ElasticSearchFieldDescriptor::create('authored', 'sulu_article.authored')
                ->setSortField('authored')
                ->setType('datetime')
                ->build(),
            'localizationState' => ElasticSearchFieldDescriptor::create('localizationState')
                ->setDisabled(true)
                ->build(),
            'published' => ElasticSearchFieldDescriptor::create('published')
                ->setDisabled(true)
                ->build(),
            'publishedState' => ElasticSearchFieldDescriptor::create('publishedState')
                ->setDisabled(true)
                ->build(),
            'routePath' => ElasticSearchFieldDescriptor::create('routePath')
                ->setDisabled(true)
                ->build(),
        ];
    }
protected function getFieldDescriptors ( ) { return [ 'uuid' => ElasticSearchFieldDescriptor :: create ( 'id' , 'public.id' ) -> setDisabled ( true ) -> build ( ) , 'typeTranslation' => ElasticSearchFieldDescriptor :: create ( 'typeTranslation' , 'sulu_article.list.type' ) -> setSortField ( 'typeTranslation.raw' ) -> setDisabled ( ! $ this -> getParameter ( 'sulu_article.display_tab_all' ) ) -> build ( ) , 'title' => ElasticSearchFieldDescriptor :: create ( 'title' , 'public.title' ) -> setSortField ( 'title.raw' ) -> build ( ) , 'creatorFullName' => ElasticSearchFieldDescriptor :: create ( 'creatorFullName' , 'sulu_article.list.creator' ) -> setSortField ( 'creatorFullName.raw' ) -> build ( ) , 'changerFullName' => ElasticSearchFieldDescriptor :: create ( 'changerFullName' , 'sulu_article.list.changer' ) -> setSortField ( 'changerFullName.raw' ) -> build ( ) , 'authorFullName' => ElasticSearchFieldDescriptor :: create ( 'authorFullName' , 'sulu_article.author' ) -> setSortField ( 'authorFullName.raw' ) -> build ( ) , 'created' => ElasticSearchFieldDescriptor :: create ( 'created' , 'public.created' ) -> setSortField ( 'authored' ) -> setType ( 'datetime' ) -> setDisabled ( true ) -> build ( ) , 'changed' => ElasticSearchFieldDescriptor :: create ( 'changed' , 'public.changed' ) -> setSortField ( 'authored' ) -> setType ( 'datetime' ) -> setDisabled ( true ) -> build ( ) , 'authored' => ElasticSearchFieldDescriptor :: create ( 'authored' , 'sulu_article.authored' ) -> setSortField ( 'authored' ) -> setType ( 'datetime' ) -> build ( ) , 'localizationState' => ElasticSearchFieldDescriptor :: create ( 'localizationState' ) -> setDisabled ( true ) -> build ( ) , 'published' => ElasticSearchFieldDescriptor :: create ( 'published' ) -> setDisabled ( true ) -> build ( ) , 'publishedState' => ElasticSearchFieldDescriptor :: create ( 'publishedState' ) -> setDisabled ( true ) -> build ( ) , 'routePath' => ElasticSearchFieldDescriptor :: create ( 'routePath' ) -> setDisabled ( true ) -> build ( ) , ] ; }
Create field-descriptor array.

@return ElasticSearchFieldDescriptor[]
Create field - descriptor array .