コード例 #1
0
 public function transform($layout, $name, $classes, $tag)
 {
     preg_match('[container]', $classes, $matches);
     $root = new Layout();
     $root->setCssClasses($matches);
     $root->setTag($tag);
     $root->setPosition(0);
     $root->setName($name);
     $this->em->persist($root);
     return $root;
 }