$this->output->
writeln( '<error>The given criteria matches multiple categories. Please try again using the category id</error>'
);
$tableData =
[];
foreach ($categories as $category) { $tableData[] =
[ $category->
getId(),
$category->
getName(),
$this->
getCategoryPath($category),
];
} $table =
new Table($this->output
);
$table ->
setHeaders(['Id', 'Name', 'Path'
]) ->
setRows($tableData);
$table->
render();
} /**
* Creates a human readable category path
*
* @return string
*/