mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
30 lines
645 B
PHP
30 lines
645 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\UrlRewriteGraphQl\Model\DataProvider;
|
|
|
|
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
|
|
|
|
interface EntityDataProviderInterface
|
|
{
|
|
/**
|
|
* Get data for url rewrite entity
|
|
*
|
|
* @param string $entity_type
|
|
* @param int $id
|
|
* @param ResolveInfo|null $info
|
|
* @param int|null $storeId
|
|
* @return array
|
|
*/
|
|
public function getData(
|
|
string $entity_type,
|
|
int $id,
|
|
ResolveInfo $info = null,
|
|
int $storeId = null
|
|
): array;
|
|
}
|