| @@ 27-38 (lines=12) @@ | ||
| 24 | /** |
|
| 25 | * {@inheritdoc} |
|
| 26 | */ |
|
| 27 | public function execute(BlockContextInterface $blockContext, Response $response = null) |
|
| 28 | { |
|
| 29 | return $this->renderResponse($blockContext->getTemplate(), array( |
|
| 30 | 'context' => $blockContext, |
|
| 31 | 'settings' => $blockContext->getSettings(), |
|
| 32 | 'block' => $blockContext->getBlock(), |
|
| 33 | ), $response); |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * {@inheritdoc} |
|
| 38 | */ |
|
| 39 | public function buildEditForm(FormMapper $formMapper, BlockInterface $block) |
|
| 40 | { |
|
| 41 | $formMapper->add('settings', 'sonata_type_immutable_array', array( |
|
| @@ 57-69 (lines=13) @@ | ||
| 54 | /** |
|
| 55 | * {@inheritdoc} |
|
| 56 | */ |
|
| 57 | public function execute(BlockContextInterface $blockContext, Response $response = null) |
|
| 58 | { |
|
| 59 | return $this->renderResponse($blockContext->getTemplate(), array( |
|
| 60 | 'context' => $blockContext, |
|
| 61 | 'settings' => $blockContext->getSettings(), |
|
| 62 | 'block' => $blockContext->getBlock(), |
|
| 63 | 'data' => $this->getData($blockContext->getSettings()), |
|
| 64 | ), $response); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * {@inheritdoc} |
|
| 69 | */ |
|
| 70 | public function buildEditForm(FormMapper $formMapper, BlockInterface $block) |
|
| 71 | { |
|
| 72 | $formMapper->add('settings', 'sonata_type_immutable_array', array( |
|