modules/acm_sku/src/Controller/SKUController.php
public function add(SKUTypeInterface $acm_sku_type) {
    $sku = $this->entityManager()
      ->getStorage('acm_sku')
      ->create(['type' => $acm_sku_type->id()]);

    $form = $this->entityFormBuilder()->getForm($sku);

    return $form;
  }
public function add(SKUTypeInterface $acm_sku_type) {
    $sku = $this->entityManager()
      ->getStorage('acm_sku')
      ->create(['type' => $acm_sku_type->id()]);

    $form = $this->entityFormBuilder()->getForm($sku);

    return $form;
  }
public function add ( SKUTypeInterface $ acm_sku_type ) { $ sku = $ this -> entityManager ( ) -> getStorage ( 'acm_sku' ) -> create ( [ 'type' => $ acm_sku_type -> id ( ) ] ) ; $ form = $ this -> entityFormBuilder ( ) -> getForm ( $ sku ) ; return $ form ; }
Provides the SKU submission form.

@param \Drupal\acm_sku\Entity\SKUTypeInterface $acm_sku_type
The SKU type entity for the SKU.

@return array
A SKU submission form.
Provides the SKU submission form .