Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/src/Controller/NodeController.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
120 * | 120 * |
121 * @param int $node_revision | 121 * @param int $node_revision |
122 * The node revision ID. | 122 * The node revision ID. |
123 * | 123 * |
124 * @return array | 124 * @return array |
125 * An array suitable for drupal_render(). | 125 * An array suitable for \Drupal\Core\Render\RendererInterface::render(). |
126 */ | 126 */ |
127 public function revisionShow($node_revision) { | 127 public function revisionShow($node_revision) { |
128 $node = $this->entityManager()->getStorage('node')->loadRevision($node_revision); | 128 $node = $this->entityManager()->getStorage('node')->loadRevision($node_revision); |
129 $node = $this->entityManager()->getTranslationFromContext($node); | 129 $node = $this->entityManager()->getTranslationFromContext($node); |
130 $node_view_controller = new NodeViewController($this->entityManager, $this->renderer, $this->currentUser()); | 130 $node_view_controller = new NodeViewController($this->entityManager, $this->renderer, $this->currentUser()); |
152 * | 152 * |
153 * @param \Drupal\node\NodeInterface $node | 153 * @param \Drupal\node\NodeInterface $node |
154 * A node object. | 154 * A node object. |
155 * | 155 * |
156 * @return array | 156 * @return array |
157 * An array as expected by drupal_render(). | 157 * An array as expected by \Drupal\Core\Render\RendererInterface::render(). |
158 */ | 158 */ |
159 public function revisionOverview(NodeInterface $node) { | 159 public function revisionOverview(NodeInterface $node) { |
160 $account = $this->currentUser(); | 160 $account = $this->currentUser(); |
161 $langcode = $node->language()->getId(); | 161 $langcode = $node->language()->getId(); |
162 $langname = $node->language()->getName(); | 162 $langname = $node->language()->getName(); |