Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/block/src/Controller/BlockAddController.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
20 * @return array | 20 * @return array |
21 * The block instance edit form. | 21 * The block instance edit form. |
22 */ | 22 */ |
23 public function blockAddConfigureForm($plugin_id, $theme) { | 23 public function blockAddConfigureForm($plugin_id, $theme) { |
24 // Create a block entity. | 24 // Create a block entity. |
25 $entity = $this->entityManager()->getStorage('block')->create(['plugin' => $plugin_id, 'theme' => $theme]); | 25 $entity = $this->entityTypeManager()->getStorage('block')->create(['plugin' => $plugin_id, 'theme' => $theme]); |
26 | 26 |
27 return $this->entityFormBuilder()->getForm($entity); | 27 return $this->entityFormBuilder()->getForm($entity); |
28 } | 28 } |
29 | 29 |
30 } | 30 } |