You are here

public function BlockEditor::rename in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Editor/BlockEditor.php \Drupal\forena\Editor\BlockEditor::rename()

Rename the exisiting block.

Parameters

unknown $name:

File

src/Editor/BlockEditor.php, line 112

Class

BlockEditor

Namespace

Drupal\forena\Editor

Code

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);
}