Loading src/Form/ShopifyWebhooksAdminForm.php +7 −0 Changes for src/Form/ShopifyWebhooksAdminForm.php: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -39,8 +39,15 @@ class ShopifyWebhooksAdminForm extends ConfigFormBase { * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { try { $client = shopify_api_client(); $webhooks = $client->getResources('webhooks'); } catch (\Exception $e) { // Error connecting to the store. drupal_set_message(t('Could not connect to the Shopify store.'), 'error'); return []; } $config = $this->config('shopify.webhooks'); $form['#tree'] = TRUE; Loading Loading
src/Form/ShopifyWebhooksAdminForm.php +7 −0 Changes for src/Form/ShopifyWebhooksAdminForm.php: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -39,8 +39,15 @@ class ShopifyWebhooksAdminForm extends ConfigFormBase { * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { try { $client = shopify_api_client(); $webhooks = $client->getResources('webhooks'); } catch (\Exception $e) { // Error connecting to the store. drupal_set_message(t('Could not connect to the Shopify store.'), 'error'); return []; } $config = $this->config('shopify.webhooks'); $form['#tree'] = TRUE; Loading