Status.php

Definition of Drupal\file\Plugin\views\field\Status.

Namespace

Drupal\file\Plugin\views\field

File

drupal/core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php
View source
<?php

/**
 * @file
 * Definition of Drupal\file\Plugin\views\field\Status.
 */
namespace Drupal\file\Plugin\views\field;

use Drupal\Core\Annotation\Plugin;
use Drupal\views\Plugin\views\field\FieldPluginBase;

/**
 * Field handler to translate a node type into its readable form.
 *
 * @ingroup views_field_handlers
 *
 * @Plugin(
 *   id = "file_status",
 *   module = "file"
 * )
 */
class Status extends FieldPluginBase {
  function render($values) {
    $value = $this
      ->get_value($values);
    return _views_file_status($value);
  }

}

Classes

Namesort descending Description
Status Field handler to translate a node type into its readable form.