Documentation

IntegrityDataProviderInterface

Table of Contents

Methods

getIntegrityData()  : array<string|int, string>
Returns a map of integrity hashes indexed by asset paths.

Methods

getIntegrityData()

Returns a map of integrity hashes indexed by asset paths.

public getIntegrityData() : array<string|int, string>

If multiples hashes are defined for a given asset they must be separated by a space.

For instance: [ 'path/to/file1.js' => 'sha384-Q86c+opr0lBUPWN28BLJFqmLhho+9ZcJpXHorQvX6mYDWJ24RQcdDarXFQYN8HLc', 'path/to/styles.css' => 'sha384-ymG7OyjISWrOpH9jsGvajKMDEOP/mKJq8bHC0XdjQA6P8sg2nu+2RLQxcNNwE/3J', ]

Return values
array<string|int, string>

        
On this page

Search results