Msieprawski\ResourceTable\Helpers\Column::content PHP Метод

content() публичный Метод

Returns column content (depends on column configuration)
public content ( null | stdClass | array $row = null ) : string
$row null | stdClass | array
Результат string
    public function content($row = null)
    {
        if (null === $row) {
            // Generate content for table head column
            $result = $this->label();
            if ($this->sortable()) {
                // Column is sortable - get anchor HTML
                $result .= $this->_getSortAnchor();
            }
            return $result;
        }
        if (!$this->hasRenderer()) {
            return (string) $row->{$this->index()};
        }
        return (string) $this->renderer($row);
    }