original_string: protected function setTitleEditCollectionItem()
      {
          $vars = array('%name' => $this->data_collection['title']);
  
          if (empty($this->data_collection_item['collection_item_id'])) {
              $text = $this->text('Add item to %name', $vars);
          } else {
              $text = $this->text('Edit item of %name', $vars);
          }
  
          $this->setTitle($text);
      }
code: protected function setTitleEditCollectionItem()
      {
          $vars = array('%name' => $this->data_collection['title']);
  
          if (empty($this->data_collection_item['collection_item_id'])) {
              $text = $this->text('Add item to %name', $vars);
          } else {
              $text = $this->text('Edit item of %name', $vars);
          }
  
          $this->setTitle($text);
      }
code_tokens: protected function setTitleEditCollectionItem ( ) { $ vars = array ( '%name' => $ this -> data_collection [ 'title' ] ) ; if ( empty ( $ this -> data_collection_item [ 'collection_item_id' ] ) ) { $ text = $ this -> text ( 'Add item to %name' , $ vars ) ; } else { $ text = $ this -> text ( 'Edit item of %name' , $ vars ) ; } $ this -> setTitle ( $ text ) ; }
docstring: Sets title on the edit collection item page
docstring_tokens: Sets title on the edit collection item page