original_string: 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;
              }
          }
      }
code: 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;
              }
          }
      }
code_tokens: 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 ; } } }
docstring: 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
docstring_tokens: Return all exports . The exports s alias are the array s keys .