src/Subjects/AbstractProductSubject.php
public function getProductLinkAttribute($linkTypeId, $attributeCode)
    {

        // try to load the link attribute with the passed link type ID and attribute code
        foreach ($this->linkAttributes as $linkAttribute) {
            if ($linkAttribute[MemberNames::LINK_TYPE_ID] === $linkTypeId &&
                $linkAttribute[MemberNames::PRODUCT_LINK_ATTRIBUTE_CODE] === $attributeCode
            ) {
                // return the matching link attribute
                return $linkAttribute;
            }
        }
    }
public function getProductLinkAttribute($linkTypeId, $attributeCode)
    {

        // try to load the link attribute with the passed link type ID and attribute code
        foreach ($this->linkAttributes as $linkAttribute) {
            if ($linkAttribute[MemberNames::LINK_TYPE_ID] === $linkTypeId &&
                $linkAttribute[MemberNames::PRODUCT_LINK_ATTRIBUTE_CODE] === $attributeCode
            ) {
                // return the matching link attribute
                return $linkAttribute;
            }
        }
    }
public function getProductLinkAttribute ( $ linkTypeId , $ attributeCode ) { // try to load the link attribute with the passed link type ID and attribute code foreach ( $ this -> linkAttributes as $ linkAttribute ) { if ( $ linkAttribute [ MemberNames :: LINK_TYPE_ID ] === $ linkTypeId && $ linkAttribute [ MemberNames :: PRODUCT_LINK_ATTRIBUTE_CODE ] === $ attributeCode ) { // return the matching link attribute return $ linkAttribute ; } } }
Return's the link attribute for the passed link type ID and attribute code.

@param integer $linkTypeId    The link type
@param string  $attributeCode The attribute code

@return array The link attribute
Return s the link attribute for the passed link type ID and attribute code .