This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Facing issue after update drupal version 8.8.2

Hi All,

I have updated the drupal version from drupal 8.6.15 to drupal 8.8.2 but when we submit the form I am facing the issue.

The website encountered an unexpected error. Please try again later.
Error: Class 'CSD\Marketo\Client' not found in Drupal\marketo_ma\Service\MarketoMaApiClient->getClient() (line 119 of modules/patched/marketo_ma/src/Service/MarketoMaApiClient.php).
 

Not sure how to fix the issue.

Thanks in advnace.

PHP 7 and group import declarations - Drupal coding standards

PHP 7 introduces group import declarations, however Drupal Coder reports an error when using them. Does anyone know where to file requests for updates to the Drupal coding standard, or if this discussion has already been had somewhere?

Drupal 8: How to attach webform to specific user

Hi, My client want to attach each webform created to specific user with role( Jury ). Then , when the user log in he see all his webforms and he can manage the submissions and set up note. e.g: I attach the webform (apply 1 ) to Alex , the webform (apply 2) to Jack. When Alex log in; he see the webform (apply 1) than he manage all submissions of apply 1 and set up a score or note for each one. How can I apply this scenario with the webform module in Drupal 8. 

Custom content entity type - select default content

Hello everyone. I'm trying to develop a module with multiple content entity types. And for one of these entity types I need to be able to select one of it's contents as default. Similar to selecting default site language. So when i select another, remove the old ones default property. And there must always be one default selected. I'd appreciate if you can point me in the right direction. Thanks a lot!

Disable sending a copy to sender in contact form Drupal 7

I have a static website with a contact form developed using drupal 7. When a user enters an email address, name, subject, and text, a copy is automatically sent to the sender. How do I disable this feature in the code side? I couldn't find this feature on the admin side in drupal.

Can someone help me out? How do I fix this in the code side? I looked at the contact module in the code. Couldn't find any?

How to update commerce order total progrmatically?

I have below code

use Drupal\commerce_order\Entity\Order;

$order = Order::load(<order id>);
if ($total_price = $order->getTotalPrice()) {
  $total_price->subtract(new Price('-5.00', 'USD'));
}

$order_refresh_service = \Drupal::service('commerce_order.order_refresh');
$order_refresh_service->refresh($order);
$order->recalculateTotalPrice();
$order->save();

How to update order total price?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions