public function addMessage($label, $message, array $args = [])
    {
        $name = $this->generateName($label).'_message';
        $args = array_merge([
            'label' => $label,
            'message' => $message,
        ], $args);

        return $this->addField($name, 'message', $args);
    }
public function addMessage($label, $message, array $args = [])
    {
        $name = $this->generateName($label).'_message';
        $args = array_merge([
            'label' => $label,
            'message' => $message,
        ], $args);

        return $this->addField($name, 'message', $args);
    }
public function addMessage ( $ label , $ message , array $ args = [ ] ) { $ name = $ this -> generateName ( $ label ) . '_message' ; $ args = array_merge ( [ 'label' => $ label , 'message' => $ message , ] , $ args ) ; return $ this -> addField ( $ name , 'message' , $ args ) ; }
Addes a message field
@param string $label
@param string $message
@param array $args field configuration
@throws FieldNameCollisionException if name already exists.
@return FieldBuilder
Addes a message field