This method executes in constant time except for the first call which caches row
label => row ID mappings.
public getRowIdFromLabel ( string $label ) : integer | ||
$label | string | `'label'` column value to look for. |
return | integer | The row ID. |
/** * @param DataTable $table */ private function filterOutKeywordNotDefined($table) { if ($table instanceof DataTable) { $row = $table->getRowIdFromLabel(''); if ($row) { $table->deleteRow($row); } } }