Skip to content

Commit

Permalink
Avoid warning in SEO API (#15066)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored and diosmosis committed Nov 6, 2019
1 parent ffd9845 commit 478a529
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion plugins/SEO/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,18 @@ public function getRank($url)
$domain = Url::getHostFromUrl($url);
$metrics = $metricProvider->getMetrics($domain);

return $this->toDataTable($metrics);
$dataTable = $this->toDataTable($metrics);
$dataTable->setMetadata(DataTable::COLUMN_AGGREGATION_OPS_METADATA_NAME, [
'id' => 'skip',
'rank' => 'skip',
'logo' => 'skip',
'logo_link' => 'skip',
'logo_tooltip' => 'skip',
'rank_suffix' => 'skip',
]);
$dataTable->disableFilter('Limit');

return $dataTable;
}

/**
Expand Down

0 comments on commit 478a529

Please sign in to comment.