You are here

private static function Kint_Decorators_Plain::_drawHeader in Devel 8.2

Same name and namespace in other branches
  1. 8 kint/kint/decorators/plain.php \Kint_Decorators_Plain::_drawHeader()
1 call to Kint_Decorators_Plain::_drawHeader()
Kint_Decorators_Plain::decorate in kint/kint/decorators/plain.php

File

kint/kint/decorators/plain.php, line 265

Class

Kint_Decorators_Plain

Code

private static function _drawHeader(kintVariableData $kintVar) {
  $output = '';
  if ($kintVar->access) {
    $output .= ' ' . $kintVar->access;
  }
  if ($kintVar->name !== null && $kintVar->name !== '') {
    $output .= ' ' . kintParser::escape($kintVar->name);
  }
  if ($kintVar->operator) {
    $output .= ' ' . $kintVar->operator;
  }
  $output .= ' ' . self::_colorize($kintVar->type, 'type', false);
  if ($kintVar->size !== null) {
    $output .= ' (' . $kintVar->size . ')';
  }
  if ($kintVar->value !== null && $kintVar->value !== '') {
    $output .= ' ' . self::_colorize($kintVar->value, 'value', false);
  }
  return ltrim($output);
}