Skip to content

Commit

Permalink
Add deep links to article provider
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Apr 28, 2020
1 parent 95f7318 commit 84a9dad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Content/ArticleDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use ONGR\ElasticsearchDSL\Sort\FieldSort;
use ProxyManager\Factory\LazyLoadingValueHolderFactory;
use ProxyManager\Proxy\LazyLoadingInterface;
use Sulu\Bundle\ArticleBundle\Admin\ArticleAdmin;
use Sulu\Bundle\ArticleBundle\Document\ArticleDocument;
use Sulu\Bundle\ArticleBundle\Document\ArticleViewDocumentInterface;
use Sulu\Bundle\WebsiteBundle\ReferenceStore\ReferenceStoreInterface;
Expand Down Expand Up @@ -101,7 +102,7 @@ public function getConfiguration()
*/
protected function getConfigurationBuilder(): BuilderInterface
{
return Builder::create()
$builder = Builder::create()
->enableTags()
->enableCategories()
->enableLimit()
Expand All @@ -116,6 +117,12 @@ protected function getConfigurationBuilder(): BuilderInterface
['column' => 'author_full_name.raw', 'title' => 'sulu_admin.author'],
]
);

if (method_exists($builder, 'enableView')) {
$builder->enableView(ArticleAdmin::EDIT_FORM_VIEW, ['id' => 'id']);
}

return $builder;
}

/**
Expand Down

0 comments on commit 84a9dad

Please sign in to comment.