original_string: protected function setTitleEditCollection()
      {
          if (isset($this->data_collection['title'])) {
              $title = $this->text('Edit %name', array('%name' => $this->data_collection['title']));
          } else {
              $title = $this->text('Add collection');
          }
  
          $this->setTitle($title);
      }
code: protected function setTitleEditCollection()
      {
          if (isset($this->data_collection['title'])) {
              $title = $this->text('Edit %name', array('%name' => $this->data_collection['title']));
          } else {
              $title = $this->text('Add collection');
          }
  
          $this->setTitle($title);
      }
code_tokens: protected function setTitleEditCollection ( ) { if ( isset ( $ this -> data_collection [ 'title' ] ) ) { $ title = $ this -> text ( 'Edit %name' , array ( '%name' => $ this -> data_collection [ 'title' ] ) ) ; } else { $ title = $ this -> text ( 'Add collection' ) ; } $ this -> setTitle ( $ title ) ; }
docstring: Sets title on the edit collection page
docstring_tokens: Sets title on the edit collection page