LanguageSupport::hookPageGetLanguageValue()

Adds a Page::getLanguageValue($language, $fieldName) method

Provides a common interface for getting all language values from 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->hookPageGetLanguageValue(HookEvent $event);

Arguments

NameType(s)Description
$eventHookEvent

Exceptions

Method can throw exceptions on error:

  • WireException


LanguageSupport methods and properties

API reference based on ProcessWire core version 3.0.264