Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

prefix_value()

Description

Helper function to quickly build a list of values, all prefixed the same way.

Example use:
$fieldXs = array_map(prefix_value('field'), [3, 88]);

Parameters

ColumnTypeDefaultDescription
$prefix: string
$format string
$datetime;
$needle
$prefix string Prefix value to prepend.

Return

Closure

This article was last updated 20th April 2024 11:35 Europe/London time based on the source file dated 18th April 2024 12:20 Europe/London time.