getDefinition($key); drupal_set_title(t('View template %name', array('%name' => $layout['title'])), PASS_THROUGH); // Render the layout in an admin context with region demonstrations. $instance = Drupal::service('plugin.manager.layout')->createInstance($key, array()); $regions = $instance->getRegions(); foreach ($regions as $region => $info) { $regions[$region] = '