src/Loaders/FilteredByEntityTypeCodeLoader.php
/**
     * Loads and returns data the array with the data, filtered by the passed entity type code.
     *
     * @param string|null $entityTypeCode The entity type code to filter the data with
     *
     * @return \ArrayAccess The array with the data
     */
Loads and returns data the array with the data, filtered by the passed entity type code.
@param string|null $entityTypeCode The entity type code to filter the data with

@return \ArrayAccess The array with the data
Loads and returns data the array with the data filtered by the passed entity type code . @param string|null $entityTypeCode The entity type code to filter the data with @return \ ArrayAccess The array with the data
public function load($entityTypeCode = null)
    {
        $data = $this->loader->load();
        if (isset($data[$entityTypeCode])) {
            return $data[$entityTypeCode];
        }
        return array();
    }
public function load ( $ entityTypeCode = null ) { $ data = $ this -> loader -> load ( ) ; if ( isset ( $ data [ $ entityTypeCode ] ) ) { return $ data [ $ entityTypeCode ] ; } return array ( ) ; }
Loads and returns data the array with the data, filtered by the passed entity type code.
Loads and returns data the array with the data filtered by the passed entity type code .
// load the data we want to filter by the passed entity type code // query whether or not data with the passed entity type code is available // return an empty array otherwise