src/wcmf/application/controller/BatchDisplayController.php
protected function addNodeToResponse(Node $node) {
    $response = $this->getResponse();
    if (!$response->hasValue('list')) {
      $objects = [];
      $response->setValue('list', $objects);
    }

    $objects = $response->getValue('list');
    $objects[] = $node;
    $response->setValue('list', $objects);
  }
protected function addNodeToResponse(Node $node) {
    $response = $this->getResponse();
    if (!$response->hasValue('list')) {
      $objects = [];
      $response->setValue('list', $objects);
    }

    $objects = $response->getValue('list');
    $objects[] = $node;
    $response->setValue('list', $objects);
  }
protected function addNodeToResponse ( Node $ node ) { $ response = $ this -> getResponse ( ) ; if ( ! $ response -> hasValue ( 'list' ) ) { $ objects = [ ] ; $ response -> setValue ( 'list' , $ objects ) ; } $ objects = $ response -> getValue ( 'list' ) ; $ objects [ ] = $ node ; $ response -> setValue ( 'list' , $ objects ) ; }
Add a given node to the list variable of the response
@param $node The Node instance to add
Add a given node to the list variable of the response