/** * Render drupal. */ protected function drupalRender() { if ($this->drupal->isFound()) { $this->drupal->buildContent(); } $this->drupal->render(); }
/** * @param Ekino\Bundle\DrupalBundle\Drupal\DrupalInterface $drupal */ public function buildResponse(DrupalInterface $drupal) { if ($drupal->isFound()) { $drupal->buildContent(); } $drupal->render(); }
/** * @param DrupalInterface $drupal */ public function buildResponse(DrupalInterface $drupal) { if ($drupal->is404()) { $drupal->disableResponse(); return; } if ($drupal->isFound()) { $drupal->buildContent(); } $drupal->render(); }