You are here

public function deploy_views_handler_revision_status_field::render in Deploy - Content Staging 7.3

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides deploy_views_handler_base::render

File

includes/views/handler_revision_status_field.inc, line 16
Deploy views revision status field handler.

Class

deploy_views_handler_revision_status_field
Class for handling the deploy manager entity revision status "field".

Code

public function render($values) {
  $entity = $this
    ->entity_load($values);
  $status = t('Latest');
  if (!deploy_is_latest_revision($values->entity_type, $entity)) {
    $status = t('Newer Available');
  }
  return $status;
}