original_string: public function determineWhichRowsAreSelectable()
      {
          if ($this->config->row_picker_match_rows_by === false) {
              return;
          }
  
          // collect all selectable rows
          $self = $this;
  
          $this->dataTable->filter(function ($dataTable) use ($self) {
              /** @var DataTable $dataTable */
  
              foreach ($dataTable->getRows() as $row) {
                  $rowLabel = $row->getColumn('label');
  
                  if (false === $rowLabel) {
                      continue;
                  }
  
                  // build config
                  if (!isset($self->selectableRows[$rowLabel])) {
                      $self->selectableRows[$rowLabel] = array(
                          'label'     => $rowLabel,
                          'matcher'   => $rowLabel,
                          'displayed' => $self->isRowVisible($rowLabel)
                      );
                  }
              }
          });
      }
code: public function determineWhichRowsAreSelectable()
      {
          if ($this->config->row_picker_match_rows_by === false) {
              return;
          }
  
          // collect all selectable rows
          $self = $this;
  
          $this->dataTable->filter(function ($dataTable) use ($self) {
              /** @var DataTable $dataTable */
  
              foreach ($dataTable->getRows() as $row) {
                  $rowLabel = $row->getColumn('label');
  
                  if (false === $rowLabel) {
                      continue;
                  }
  
                  // build config
                  if (!isset($self->selectableRows[$rowLabel])) {
                      $self->selectableRows[$rowLabel] = array(
                          'label'     => $rowLabel,
                          'matcher'   => $rowLabel,
                          'displayed' => $self->isRowVisible($rowLabel)
                      );
                  }
              }
          });
      }
code_tokens: public function determineWhichRowsAreSelectable ( ) { if ( $ this -> config -> row_picker_match_rows_by === false ) { return ; } // collect all selectable rows $ self = $ this ; $ this -> dataTable -> filter ( function ( $ dataTable ) use ( $ self ) { /** @var DataTable $dataTable */ foreach ( $ dataTable -> getRows ( ) as $ row ) { $ rowLabel = $ row -> getColumn ( 'label' ) ; if ( false === $ rowLabel ) { continue ; } // build config if ( ! isset ( $ self -> selectableRows [ $ rowLabel ] ) ) { $ self -> selectableRows [ $ rowLabel ] = array ( 'label' => $ rowLabel , 'matcher' => $ rowLabel , 'displayed' => $ self -> isRowVisible ( $ rowLabel ) ) ; } } } ) ; }
docstring: Determines what rows are selectable and stores them in the selectable_rows property in
  a format the SeriesPicker JavaScript class can use.
docstring_tokens: Determines what rows are selectable and stores them in the selectable_rows property in a format the SeriesPicker JavaScript class can use .