Skip to content

Commit

Permalink
use CustomMetadataServiceInterface (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
martineiber authored Oct 9, 2024
1 parent 30711de commit e59e9a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Grid/Column/Collector/Asset/MetadataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace Pimcore\Bundle\StudioBackendBundle\Grid\Column\Collector\Asset;

use Pimcore\Bundle\StudioBackendBundle\Asset\Service\Data\CustomMetadataServiceInterface;
use Pimcore\Bundle\StudioBackendBundle\Grid\Column\ColumnCollectorInterface;
use Pimcore\Bundle\StudioBackendBundle\Grid\Column\ColumnDefinitionInterface;
use Pimcore\Bundle\StudioBackendBundle\Grid\Column\FrontendType;
Expand Down Expand Up @@ -58,7 +59,7 @@ public function getColumnConfigurations(array $availableColumnDefinitions): arra
*/
private function getDefaultMetadata(): array
{
$defaultMetadata = ['title', 'alt', 'copyright'];
$defaultMetadata = CustomMetadataServiceInterface::DEFAULT_METADATA;
$columns = [];
foreach ($defaultMetadata as $metadata) {
$columns[] = new ColumnConfiguration(
Expand Down

0 comments on commit e59e9a0

Please sign in to comment.