Loading core/modules/block/src/BlockPluginCollection.php +13 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,19 @@ public function &get($instance_id) { return parent::get($instance_id); } /** * {@inheritdoc} * * @return void * Returns nothing. */ public function addInstanceId($id, $configuration = NULL) { if (!$id) { throw new PluginException("The block '{$this->blockId}' did not specify a plugin."); } parent::addInstanceId($id, $configuration); } /** * {@inheritdoc} */ Loading Loading
core/modules/block/src/BlockPluginCollection.php +13 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,19 @@ public function &get($instance_id) { return parent::get($instance_id); } /** * {@inheritdoc} * * @return void * Returns nothing. */ public function addInstanceId($id, $configuration = NULL) { if (!$id) { throw new PluginException("The block '{$this->blockId}' did not specify a plugin."); } parent::addInstanceId($id, $configuration); } /** * {@inheritdoc} */ Loading