Mercurial > hg > isophonics-drupal-site
comparison core/modules/block_content/src/Controller/BlockContentController.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
96 * The custom block type to add. | 96 * The custom block type to add. |
97 * @param \Symfony\Component\HttpFoundation\Request $request | 97 * @param \Symfony\Component\HttpFoundation\Request $request |
98 * The current request object. | 98 * The current request object. |
99 * | 99 * |
100 * @return array | 100 * @return array |
101 * A form array as expected by drupal_render(). | 101 * A form array as expected by |
102 * \Drupal\Core\Render\RendererInterface::render(). | |
102 */ | 103 */ |
103 public function addForm(BlockContentTypeInterface $block_content_type, Request $request) { | 104 public function addForm(BlockContentTypeInterface $block_content_type, Request $request) { |
104 $block = $this->blockContentStorage->create([ | 105 $block = $this->blockContentStorage->create([ |
105 'type' => $block_content_type->id() | 106 'type' => $block_content_type->id() |
106 ]); | 107 ]); |