public function MixitupFunc::getRowClasses in MixItUp Views 8
Same name and namespace in other branches
- 8.2 src/MixitupFunc.php \Drupal\mixitup_views\MixitupFunc::getRowClasses()
Get classes string for node.
Parameters
int $nid: Node id.
Return value
string Classes string.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
MixitupFunc.php, line 91
Class
- MixitupFunc
- Performs assistance functionality.
Namespace
Drupal\mixitup_viewsCode
public function getRowClasses($nid) {
$tids = $this
->getNodeTids($nid);
$classes = [];
if (!empty($tids)) {
foreach ($tids as $tid) {
$classes[] = 'tid_' . $tid;
$this
->populateFilters($tid, $nid);
}
}
$classes = implode(' ', $classes);
return $classes;
}