src/RpViewWidget.php
public function getRpAttributes()
    {
        $result = [];
        $rpm = $this->model->relatedPropertiesModel;

        if ($attributes = $this->visibleRpAttributes)
        {
            foreach ($attributes as $attribute)
            {
                if (!$this->visible_only_has_values)
                {
                    $result[] = $attribute;
                    continue;
                }

                $value = $rpm->getSmartAttribute($attribute);
                if ($value)
                {
                    $result[$attribute] = $value;
                    continue;
                }
            }
        }

        return $result;
    }
public function getRpAttributes()
    {
        $result = [];
        $rpm = $this->model->relatedPropertiesModel;

        if ($attributes = $this->visibleRpAttributes)
        {
            foreach ($attributes as $attribute)
            {
                if (!$this->visible_only_has_values)
                {
                    $result[] = $attribute;
                    continue;
                }

                $value = $rpm->getSmartAttribute($attribute);
                if ($value)
                {
                    $result[$attribute] = $value;
                    continue;
                }
            }
        }

        return $result;
    }
public function getRpAttributes ( ) { $ result = [ ] ; $ rpm = $ this -> model -> relatedPropertiesModel ; if ( $ attributes = $ this -> visibleRpAttributes ) { foreach ( $ attributes as $ attribute ) { if ( ! $ this -> visible_only_has_values ) { $ result [ ] = $ attribute ; continue ; } $ value = $ rpm -> getSmartAttribute ( $ attribute ) ; if ( $ value ) { $ result [ $ attribute ] = $ value ; continue ; } } } return $ result ; }
Smart visible code => value

@return array
Smart visible code = > value