public function BlockEditor::rename in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Editor/BlockEditor.php \Drupal\forena\Editor\BlockEditor::rename()
Rename the exisiting block.
Parameters
string $name:
File
- src/
Editor/ BlockEditor.php, line 122
Class
Namespace
Drupal\forena\EditorCode
public function rename($name) {
$old_name = $this->{$block_name};
unset($_SESSION['forea_query_editor'][$old_name]);
$this->{$block_name} = $this->provider . '/' . $name;
$this
->update($this->block);
}