You are here

function LinkitPluginNode::buildRowClass in Linkit 7.2

Returns a string with CSS classes that will be added to the search result row for this item.

Overrides LinkitPlugin::buildRowClass

File

plugins/linkit_plugins/linkit-plugin-node.class.php, line 21
Define Linkit node plugin class.

Class

LinkitPluginNode
@file Define Linkit node plugin class.

Code

function buildRowClass($entity) {
  if ($this->conf['include_unpublished'] && $entity->status == NODE_NOT_PUBLISHED) {
    return 'unpublished-node';
  }
}