Core/src/Batch/BatchRunner.php
public function submitItem($identifier, $item)
    {
        $job = $this->getJobFromId($identifier);
        if ($job === null) {
            throw new \RuntimeException(
                "The identifier does not exist: $identifier"
            );
        }
        $idNum = $job->id();
        return $this->processor->submit($item, $idNum);
    }
public function submitItem($identifier, $item)
    {
        $job = $this->getJobFromId($identifier);
        if ($job === null) {
            throw new \RuntimeException(
                "The identifier does not exist: $identifier"
            );
        }
        $idNum = $job->id();
        return $this->processor->submit($item, $idNum);
    }
public function submitItem ( $ identifier , $ item ) { $ job = $ this -> getJobFromId ( $ identifier ) ; if ( $ job === null ) { throw new \ RuntimeException ( "The identifier does not exist: $identifier" ) ; } $ idNum = $ job -> id ( ) ; return $ this -> processor -> submit ( $ item , $ idNum ) ; }
Submit an item.

@param string $identifier Unique identifier of the job.
@param mixed $item It needs to be serializable.

@return bool true on success, false on failure
@throws \RuntimeException
Submit an item .