public function getExports($whereUserIsGranted = true)
    {
        foreach ($this->exports as $alias => $export) {
            if ($whereUserIsGranted) {
                if ($this->isGrantedForElement($export, null, null)) {
                    yield $alias => $export;
                }
            } else {
                yield $alias => $export;
            }
        }
    }
public function getExports($whereUserIsGranted = true)
    {
        foreach ($this->exports as $alias => $export) {
            if ($whereUserIsGranted) {
                if ($this->isGrantedForElement($export, null, null)) {
                    yield $alias => $export;
                }
            } else {
                yield $alias => $export;
            }
        }
    }
public function getExports ( $ whereUserIsGranted = true ) { foreach ( $ this -> exports as $ alias => $ export ) { if ( $ whereUserIsGranted ) { if ( $ this -> isGrantedForElement ( $ export , null , null ) ) { yield $ alias => $ export ; } } else { yield $ alias => $ export ; } } }
Return all exports. The exports's alias are the array's keys.

@param boolean $whereUserIsGranted if true (default), restrict to user which are granted the right to execute the export
@return ExportInterface[] an array where export's alias are keys
Return all exports . The exports s alias are the array s keys .