コード例 #1
0
 /**
  * @param LayoutManipulatorInterface $layoutManipulator
  * @param LayoutItemInterface        $item
  */
 public function callbackFunction(LayoutManipulatorInterface $layoutManipulator, LayoutItemInterface $item)
 {
     $layoutManipulator->add('id', $item->getId(), $item->getTypeName());
 }
コード例 #2
0
 /**
  * Add the given field to the layout.
  *
  * @param string      $fieldPath
  * @param string      $id
  * @param string|null $parentId
  */
 protected function addField($fieldPath, $id, $parentId = null)
 {
     $this->layoutManipulator->add($id, $parentId ?: $this->builder->getId(), FormFieldType::NAME, ['form' => $this->options['form'], 'form_name' => $this->options['form_name'], 'field_path' => $fieldPath]);
 }