setIdentifier() public method

public setIdentifier ( string $identifier )
$identifier string
コード例 #1
0
 public function create() : LayoutBoxInterface
 {
     $box = new LayoutBox();
     $box->setBoxType('');
     $box->setIdentifier('');
     $box->setSettings([]);
     return $box;
 }
コード例 #2
0
 /**
  * @return \WellCommerce\Bundle\LayoutBundle\Entity\LayoutBoxInterface
  */
 public function create()
 {
     $box = new LayoutBox();
     $box->setIdentifier('');
     return $box;
 }
コード例 #3
0
 protected function createLayoutBox($type, $identifier, $name, $settings = [])
 {
     $layoutBox = new LayoutBox();
     $layoutBox->setBoxType($type);
     $layoutBox->setIdentifier($identifier);
     $layoutBox->setSettings($settings);
     $layoutBox->translate('en')->setName($name);
     $layoutBox->mergeNewTranslations();
     $this->manager->persist($layoutBox);
 }