GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Core/Render/Element/ |
Upload File : |
<?php namespace Drupal\Core\Render\Element; use Drupal\Core\Form\FormStateInterface; /** * Provides a form element for input of multiple-line text. * * Properties: * - #rows: Number of rows in the text box. * - #cols: Number of columns in the text box. * - #resizable: Controls whether the text area is resizable. Allowed values * are "none", "vertical", "horizontal", or "both" (defaults to "vertical"). * * Usage example: * @code * $form['text'] = array( * '#type' => 'textarea', * '#title' => $this->t('Text'), * ); * @endcode * * @see \Drupal\Core\Render\Element\Textfield * @see \Drupal\filter\Element\TextFormat * * @FormElement("textarea") */ class Textarea extends FormElement { /** * {@inheritdoc} */ public function getInfo() { $class = get_class($this); return [ '#input' => TRUE, '#cols' => 60, '#rows' => 5, '#resizable' => 'vertical', '#process' => [ [$class, 'processAjaxForm'], [$class, 'processGroup'], ], '#pre_render' => [ [$class, 'preRenderGroup'], ], '#theme' => 'textarea', '#theme_wrappers' => ['form_element'], ]; } /** * {@inheritdoc} */ public static function valueCallback(&$element, $input, FormStateInterface $form_state) { if ($input !== FALSE && $input !== NULL) { // This should be a string, but allow other scalars since they might be // valid input in programmatic form submissions. return is_scalar($input) ? (string) $input : ''; } return NULL; } }