skeeks\cms\models\searchs\SearchRelatedPropertiesModel::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( ) : array
return array
    public function attributeLabels()
    {
        $result = [];
        foreach ($this->attributes() as $code) {
            if ($property = $this->getProperty($code)) {
                $result[$code] = $property->name;
            } else {
                $result[$code] = $code;
            }
        }
        return $result;
    }