public function add(SiteCommerceTypeInterface $site_commerce_type) {
    $site_commerce = $this->entityManager()->getStorage('site_commerce')->create(array(
      'type' => $site_commerce_type->id(),
    ));

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

    return $form;
  }
public function add(SiteCommerceTypeInterface $site_commerce_type) {
    $site_commerce = $this->entityManager()->getStorage('site_commerce')->create(array(
      'type' => $site_commerce_type->id(),
    ));

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

    return $form;
  }
public function add ( SiteCommerceTypeInterface $ site_commerce_type ) { $ site_commerce = $ this -> entityManager ( ) -> getStorage ( 'site_commerce' ) -> create ( array ( 'type' => $ site_commerce_type -> id ( ) , ) ) ; $ form = $ this -> entityFormBuilder ( ) -> getForm ( $ site_commerce ) ; return $ form ; }
Provides the site_commerce submission form.

@param \Drupal\site_commerce\Entity\SiteCommerceTypeInterface $site_commerce_type
The site_commerce type entity for the site_commerce.

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