public function getValue(ArrayAccess $item): string
    {
        $value = $item->offsetExists($this->name)
            ? $item->offsetGet($this->name)
            : '';

        if (is_callable($this->filter)) {
            if ($this->filter instanceof ContextAwareFilterInterface) {
                $this->filter->setContext(clone $item);
            }

            $value = call_user_func($this->filter, $value);
        }

        return $value;
    }
public function getValue(ArrayAccess $item): string
    {
        $value = $item->offsetExists($this->name)
            ? $item->offsetGet($this->name)
            : '';

        if (is_callable($this->filter)) {
            if ($this->filter instanceof ContextAwareFilterInterface) {
                $this->filter->setContext(clone $item);
            }

            $value = call_user_func($this->filter, $value);
        }

        return $value;
    }
public function getValue ( ArrayAccess $ item ) : string { $ value = $ item -> offsetExists ( $ this -> name ) ? $ item -> offsetGet ( $ this -> name ) : '' ; if ( is_callable ( $ this -> filter ) ) { if ( $ this -> filter instanceof ContextAwareFilterInterface ) { $ this -> filter -> setContext ( clone $ item ) ; } $ value = call_user_func ( $ this -> filter , $ value ) ; } return $ value ; }
Get the value from a data object, the filter is applied.

@param ArrayAccess $item

@return string
Get the value from a data object the filter is applied .