Property | Type | Description | |
---|---|---|---|
$storageMap | array | Map of storages. |
Method | Description | |
---|---|---|
__construct ( array $storageMap ) | Create field storage registry with converter map. | |
getStorage ( string $typeName ) : eZ\Publish\SPI\FieldType\FieldStorage | Returns the storage for $typeName. | |
register ( string $typeName, mixed $storage ) | Register $storage for $typeName. |
public __construct ( array $storageMap ) | ||
$storageMap | array | A map where key is field type name, and value is a callable factory to get FieldStorage OR FieldStorage object |
public getStorage ( string $typeName ) : eZ\Publish\SPI\FieldType\FieldStorage | ||
$typeName | string | |
return | eZ\Publish\SPI\FieldType\FieldStorage |