public function rename_category(category_controller $category, string $name) {
        $this->validate_category($category);
        $category->set('name', $name);
        api::save_category($category);
        $this->clear_configuration_cache();
    }
public function rename_category(category_controller $category, string $name) {
        $this->validate_category($category);
        $category->set('name', $name);
        api::save_category($category);
        $this->clear_configuration_cache();
    }
public function rename_category ( category_controller $ category , string $ name ) { $ this -> validate_category ( $ category ) ; $ category -> set ( 'name' , $ name ) ; api :: save_category ( $ category ) ; $ this -> clear_configuration_cache ( ) ; }
Change name for a field category

@param category_controller $category
@param string $name
Change name for a field category