function BlockPluginCollection::addInstanceId
Return value
void Returns nothing.
Overrides DefaultSingleLazyPluginCollection::addInstanceId
File
-
core/
modules/ block/ src/ BlockPluginCollection.php, line 55
Class
- BlockPluginCollection
- Provides a collection of block plugins.
Namespace
Drupal\blockCode
public function addInstanceId($id, $configuration = NULL) {
if (!$id) {
throw new PluginException("The block '{$this->blockId}' did not specify a plugin.");
}
parent::addInstanceId($id, $configuration);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.