comparison core/modules/system/src/SystemManager.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
150 * For example, 'admin/structure/types' needs to have a destination to be 150 * For example, 'admin/structure/types' needs to have a destination to be
151 * valid in the Drupal menu system, but too much information there might be 151 * valid in the Drupal menu system, but too much information there might be
152 * hidden, so we supply the contents of the block. 152 * hidden, so we supply the contents of the block.
153 * 153 *
154 * @return array 154 * @return array
155 * A render array suitable for drupal_render. 155 * A render array suitable for
156 * \Drupal\Core\Render\RendererInterface::render().
156 */ 157 */
157 public function getBlockContents() { 158 public function getBlockContents() {
158 // We hard-code the menu name here since otherwise a link in the tools menu 159 // We hard-code the menu name here since otherwise a link in the tools menu
159 // or elsewhere could give us a blank block. 160 // or elsewhere could give us a blank block.
160 $link = $this->menuActiveTrail->getActiveLink('admin'); 161 $link = $this->menuActiveTrail->getActiveLink('admin');