src/Cms/Definition/ContentGroupDefiner.php
public function withText(string $name, string $label)
    {
        $this->contentGroup->textAreas[$name] = ['name' => $name, 'label' => $label, 'order' => $this->order++];

        return $this;
    }
public function withText(string $name, string $label)
    {
        $this->contentGroup->textAreas[$name] = ['name' => $name, 'label' => $label, 'order' => $this->order++];

        return $this;
    }
public function withText ( string $ name , string $ label ) { $ this -> contentGroup -> textAreas [ $ name ] = [ 'name' => $ name , 'label' => $ label , 'order' => $ this -> order ++ ] ; return $ this ; }
Defines a text field.

@param string $name
@param string $label

@return static
Defines a text field .