/**
  * {@inheritdoc}
  */
 public function buildBlock(BlockBuilderInterface $builder, array $options)
 {
     $id = $builder->getId();
     $builder->getLayoutManipulator()->add($id . '_logo', $id, 'logo');
 }
Example #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]);
 }