Exemplo n.º 1
0
 /**
  * Provides a single block from the administration menu as a page.
  */
 public function translatorAdminMenuBlockPage()
 {
     $contents = $this->systemManager->getBlockContents();
     if (count($contents['#content']) === 1) {
         /** @var \Drupal\Core\Url $url */
         $url = reset($contents['#content'])['url'];
         return $this->redirect($url->getRouteName(), $url->getRouteParameters(), $url->getOptions());
     }
     return $contents;
 }
Exemplo n.º 2
0
 /**
  * Provides a single block from the administration menu as a page.
  */
 public function systemAdminMenuBlockPage()
 {
     return $this->systemManager->getBlockContents();
 }