src/base/Component.php
public function getAttributeLabel($attribute)
    {
        $labels = $this->attributeLabels();
        if (isset($labels[$attribute])) {
            return $labels[$attribute];
        }

        return $this->generateAttributeLabel($attribute);
    }
public function getAttributeLabel($attribute)
    {
        $labels = $this->attributeLabels();
        if (isset($labels[$attribute])) {
            return $labels[$attribute];
        }

        return $this->generateAttributeLabel($attribute);
    }
public function getAttributeLabel ( $ attribute ) { $ labels = $ this -> attributeLabels ( ) ; if ( isset ( $ labels [ $ attribute ] ) ) { return $ labels [ $ attribute ] ; } return $ this -> generateAttributeLabel ( $ attribute ) ; }
Returns the text label for the specified attribute.
If the attribute looks like `relatedModel.attribute`, then the attribute will be received from the related model.
@param string $attribute the attribute name
@return string the attribute label
@see generateAttributeLabel()
@see attributeLabels()
Returns the text label for the specified attribute . If the attribute looks like relatedModel . attribute then the attribute will be received from the related model .