LanguageSupport::hookPageSetLanguageValue()
Adds a Page::setLanguageValue($language, $fieldName, $value) method
Provides a common interface for setting all language values to a Page.
This method exists in this class rather than one of the field-specific classes because it deals with both language fields and page names, and potentially other types of unknown types that implement LanguagesValueInterface.
Usage
$languageSupport->hookPageSetLanguageValue(HookEvent $event);Arguments
| Name | Type(s) | Description |
|---|---|---|
$event | HookEvent |
Exceptions
Method can throw exceptions on error:
WireException
LanguageSupport methods and properties
API reference based on ProcessWire core version 3.0.264