public function toArray(array $keys = [])
    {
        $data = parent::toArray($keys);

        if (in_array('url', $keys) || empty($keys)) {
            $data['url'] = $this->getUrl();
        }

        if (in_array('is_selected', $keys) || empty($keys)) {
            $data['is_selected'] = (bool) $this->getIsSelected();
        }

        return $data;
    }
public function toArray(array $keys = [])
    {
        $data = parent::toArray($keys);

        if (in_array('url', $keys) || empty($keys)) {
            $data['url'] = $this->getUrl();
        }

        if (in_array('is_selected', $keys) || empty($keys)) {
            $data['is_selected'] = (bool) $this->getIsSelected();
        }

        return $data;
    }
public function toArray ( array $ keys = [ ] ) { $ data = parent :: toArray ( $ keys ) ; if ( in_array ( 'url' , $ keys ) || empty ( $ keys ) ) { $ data [ 'url' ] = $ this -> getUrl ( ) ; } if ( in_array ( 'is_selected' , $ keys ) || empty ( $ keys ) ) { $ data [ 'is_selected' ] = ( bool ) $ this -> getIsSelected ( ) ; } return $ data ; }
Append url and is_selected computed fields to the result array.

{@inheritDoc}
Append url and is_selected computed fields to the result array .