Field::setDescription() method

Set description, optionally for a specific language

Available since version 3.0.16. Added for consistency, all versions can still set property directly.

Usage

// basic usage
$field->setDescription(string $text);

// usage with all arguments
$field->setDescription(string $text, $language = null);

Arguments

NameType(s)Description
$textstring

Text to set

$language (optional)Language string int null

Language to use


$field methods and properties

API reference based on ProcessWire core version 3.0.252