Sets the theme value.
When creating a new custom block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the custom block add form is shown.
string $theme: The theme name.
Overrides CustomBlockInterface::setTheme
public function setTheme($theme) {
$this->theme = $theme;
}