* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Form\IdentifiableObject\OptionProvider; /** * Interface for services that provide options for identifiable object forms. */ interface FormOptionsProviderInterface { /** * Get form options for given object with given id. * * @param int $id * @param array $data * * @return array */ public function getOptions(int $id, array $data): array; /** * Get default form options. * * @param array $data * * @return array */ public function getDefaultOptions(array $data): array; }