src/Page/Page.php
protected function getSettingMessages(FieldTypeInterface $setting): array
    {
        $messages = [];

        foreach ($setting->getOption('messages', []) as $attr => $message) {
            $messages[$setting->getName().'.'.$attr] = $message;
        }

        return $messages;
    }
protected function getSettingMessages(FieldTypeInterface $setting): array
    {
        $messages = [];

        foreach ($setting->getOption('messages', []) as $attr => $message) {
            $messages[$setting->getName().'.'.$attr] = $message;
        }

        return $messages;
    }
protected function getSettingMessages ( FieldTypeInterface $ setting ) : array { $ messages = [ ] ; foreach ( $ setting -> getOption ( 'messages' , [ ] ) as $ attr => $ message ) { $ messages [ $ setting -> getName ( ) . '.' . $ attr ] = $ message ; } return $ messages ; }
Return the setting custom error messages.

@param FieldTypeInterface $setting

@return array
Return the setting custom error messages .