formatters (not implemented yet) > UI. * The `_fx` is a special flag such as to temporarily disable till needed. * Called by field formatters, views [styles|fields via BlazyEntity], * [blazy|splide|slick] filters. * * @param array $settings * The settings being modified. */ public function preSettings(array &$settings): void; /** * Modifies the post settings inherited down to each item. * * @param array $settings * The settings being modified. */ public function postSettings(array &$settings): void; /** * Returns cached data identified by its cache ID, normally alterable data. * * @param string $cid * The cache ID, als used for the hook_alter. * @param array $data * The given data to cache. * @param bool $reset * Whether to re-fetch in case not cached yet. * @param string $alter * The specific alter for the hook_alter, otherwise $cid. * @param array $context * The optional context or info for the hook_alter. * * @return array * The cache data. * * @todo remove after BlazyInterface at/ before 3.x. */ public function getCachedData( $cid, array $data = [], $reset = FALSE, $alter = NULL, array $context = [] ): array; /** * Alias for Blazy::getLibrariesPath() to get libraries path. * * @param string $name * The library name. * @param bool $base_path * Whether to prefix it with an a base path, deprecated. * * @return string * The path to library or NULL if not found. * * @todo remove after BlazyInterface at/ before 3.x. */ public function getLibrariesPath($name, $base_path = FALSE): ?string; /** * Alias for Blazy::getPath() to get module or theme path. * * @param string $type * The object type, can be module or theme. * @param string $name * The object name. * @param bool $absolute * Whether to return an absolute path. * * @return string * The path to object or NULL if not found. * * @todo remove after BlazyInterface at/ before 3.x. */ public function getPath($type, $name, $absolute = FALSE): ?string; /** * Returns items wrapped by theme_item_list(), can be a grid, or plain list. * * Alias for Blazy::grid() for sub-modules and easy organization later. * * @param array $items * The grid items. * @param array $settings * The given settings. * * @return array * The modified array of grid items. * * @todo remove after BlazyInterface at/ before 3.x. */ public function toGrid(array $items, array $settings): array; }