src/Repositories/ImageTypeRepository.php
/**
     * Return's an array with all available image types for the passed entity type code
     * and frontend input type with the link type code as key.
     *
     * @return array The available image types
     */
Return's an array with all available image types for the passed entity type code
and frontend input type with the link type code as key.

@return array The available image types
Return ' s an array with all available image types for the passed entity type code and frontend input type with the link type code as key . @return array The available image types
public function findAll()
    {
        $result = array();
        $this->imageTypesByEntityTypeCodeAndFrontendInputStmt->execute();
        if ($imageTypes = $this->imageTypesByEntityTypeCodeAndFrontendInputStmt->fetchAll(\PDO::FETCH_ASSOC)) {
            foreach ($imageTypes as $imageType) {
                $attributeCode = $imageType[MemberNames::ATTRIBUTE_CODE];
                if (isset($this->defaultMappings[$attributeCode])) {
                    $attributeCode = $this->defaultMappings[$attributeCode];
                }
                $result[$attributeCode] = sprintf('%s_label', $attributeCode);
            }
        }
        return $result;
    }
public function findAll ( ) { $ result = array ( ) ; $ this -> imageTypesByEntityTypeCodeAndFrontendInputStmt -> execute ( ) ; if ( $ imageTypes = $ this -> imageTypesByEntityTypeCodeAndFrontendInputStmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ) { foreach ( $ imageTypes as $ imageType ) { $ attributeCode = $ imageType [ MemberNames :: ATTRIBUTE_CODE ] ; if ( isset ( $ this -> defaultMappings [ $ attributeCode ] ) ) { $ attributeCode = $ this -> defaultMappings [ $ attributeCode ] ; } $ result [ $ attributeCode ] = sprintf ( '%s_label' , $ attributeCode ) ; } } return $ result ; }
Return's an array with all available image types for the passed entity type code
 and frontend input type with the link type code as key.
Return ' s an array with all available image types for the passed entity type code and frontend input type with the link type code as key .
// initialize the result array // load and the image types from the EAV attribute table // fetch the image types with the passed parameters // iterate over the image types found // map the default image types // add the (mapped) image type // return the result