acquia_commercemanager-8.x-1.122/modules/acm_cart/src/Plugin/Block/CartFormBlock.php
modules/acm_cart/src/Plugin/Block/CartFormBlock.php
<?php namespace Drupal\acm_cart\Plugin\Block; use Drupal\Core\Block\BlockBase; use Drupal\acm_cart\Form\CustomerCartForm; /** * Provides a 'CartFormBlock' block. * * @Block( * id = "cart_form_block", * admin_label = @Translation("Cart Form block"), * ) */ class CartFormBlock extends BlockBase { /** * {@inheritdoc} */ public function build() { $build = []; $build['cart_form_block'] = \Drupal::formBuilder() ->getForm(CustomerCartForm::class); return $build; } }