Commit 02af9bc3 authored by webchick's avatar webchick

Issue #2936793 follow-up by tim.plunkett: Fix PHP5's hacking and wheezing.

parent 877918c7
......@@ -125,7 +125,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
// Defer to the callback in the item definition as it can be overridden.
$constraint = $field_definition->getItemDefinition()->getConstraint('ComplexData');
if (isset($constraint['value']['AllowedValues']['callback'])) {
$languages = $constraint['value']['AllowedValues']['callback']();
$languages = call_user_func($constraint['value']['AllowedValues']['callback']);
}
else {
$languages = static::getAllowedLanguageCodes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment