TextareaFormField.php in Zircon Profile 8
File
vendor/symfony/dom-crawler/Field/TextareaFormField.php
View source
<?php
namespace Symfony\Component\DomCrawler\Field;
class TextareaFormField extends FormField {
protected function initialize() {
if ('textarea' !== $this->node->nodeName) {
throw new \LogicException(sprintf('A TextareaFormField can only be created from a textarea tag (%s given).', $this->node->nodeName));
}
$this->value = '';
foreach ($this->node->childNodes as $node) {
$this->value .= $node->wholeText;
}
}
}
Classes
Name |
Description |
TextareaFormField |
TextareaFormField represents a textarea form field (an HTML textarea tag). |