You are here

public function MultiNodeAddController::statusPage in Multi Node Add 8

Status page after the node creation.

@todo: upgrade the calls to D8

1 string reference to 'MultiNodeAddController::statusPage'
multi_node_add.routing.yml in ./multi_node_add.routing.yml
multi_node_add.routing.yml

File

src/Controller/MultiNodeAddController.php, line 61

Class

MultiNodeAddController
Controller for Multi Node Add.

Namespace

Drupal\multi_node_add\Controller

Code

public function statusPage($node = NULL) {
  return $this
    ->renderBarePage(t('The node is created. Title: %title , node id: !nid', [
    '%title' => $node->title,
    '!nid' => l($node->nid, 'node/' . $node->nid, [
      'attributes' => [
        'target' => '_blank',
      ],
    ]),
  ]));
}