src/Subjects/AbstractProductSubject.php
public function getProductLinkAttributeByLinkTypeCodeAndAttributeCode($linkTypeCode, $attributeCode)
    {

        // map the link type code => ID
        $linkTypeId = $this->mapLinkTypeCodeToLinkTypeId($linkTypeCode);

        // 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 getProductLinkAttributeByLinkTypeCodeAndAttributeCode($linkTypeCode, $attributeCode)
    {

        // map the link type code => ID
        $linkTypeId = $this->mapLinkTypeCodeToLinkTypeId($linkTypeCode);

        // 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 getProductLinkAttributeByLinkTypeCodeAndAttributeCode ( $ linkTypeCode , $ attributeCode ) { // map the link type code => ID $ linkTypeId = $ this -> mapLinkTypeCodeToLinkTypeId ( $ linkTypeCode ) ; // 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 and attribute code.

@param string $linkTypeCode  The link type code
@param string $attributeCode The attribute code

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