src/Utils/UrlKeyUtil.php
/**
     * Load the url_key if exists
     *
     * @param \TechDivision\Import\Subjects\UrlKeyAwareSubjectInterface $subject      The subject to make the URL key unique for
     * @param int                                                       $primaryKeyId The ID from category or product
     *
     * @return string|null The URL key
     */
Load the url_key if exists
@param \TechDivision\Import\Subjects\UrlKeyAwareSubjectInterface $subject      The subject to make the URL key unique for
@param int                                                       $primaryKeyId The ID from category or product

@return string|null The URL key
Load the url_key if exists @param \ TechDivision \ Import \ Subjects \ UrlKeyAwareSubjectInterface $subject The subject to make the URL key unique for @param int $primaryKeyId The ID from category or product @return string|null The URL key
public function loadUrlKey(UrlKeyAwareSubjectInterface $subject, $primaryKeyId)
    {
        $entityType = $subject->getEntityType();
        $entityTypeId = (integer) $entityType[MemberNames::ENTITY_TYPE_ID];
        $storeId = $subject->getRowStoreId(StoreViewCodes::ADMIN);
        $attribute = $this->getUrlKeyAwareProcessor()
            ->loadVarcharAttributeByAttributeCodeAndEntityTypeIdAndStoreIdAndPrimaryKey(
                MemberNames::URL_KEY,
                $entityTypeId,
                $storeId,
                $primaryKeyId
            );
        return $attribute ? $attribute['value'] : null;
    }
public function loadUrlKey ( UrlKeyAwareSubjectInterface $ subject , $ primaryKeyId ) { $ entityType = $ subject -> getEntityType ( ) ; $ entityTypeId = ( integer ) $ entityType [ MemberNames :: ENTITY_TYPE_ID ] ; $ storeId = $ subject -> getRowStoreId ( StoreViewCodes :: ADMIN ) ; $ attribute = $ this -> getUrlKeyAwareProcessor ( ) -> loadVarcharAttributeByAttributeCodeAndEntityTypeIdAndStoreIdAndPrimaryKey ( MemberNames :: URL_KEY , $ entityTypeId , $ storeId , $ primaryKeyId ) ; return $ attribute ? $ attribute [ 'value' ] : null ; }
Load the url_key if exists
 @param \TechDivision\Import\Subjects\UrlKeyAwareSubjectInterface $subject      The subject to make the URL key unique for
 @param int                                                       $primaryKeyId The ID from category or product
Load the url_key if exists @param \ TechDivision \ Import \ Subjects \ UrlKeyAwareSubjectInterface $subject The subject to make the URL key unique for @param int $primaryKeyId The ID from category or product
// initialize the entity type ID // initialize the store view ID, use the admin store view if no store view has // been set, because the default url_key value has been set in admin store view // try to load the attribute // return the attribute value or null, if not available