You are here

public function DrupalGapController::drupalgapConfig in DrupalGap 8.2

Same name and namespace in other branches
  1. 8 src/Controller/DrupalGapController.php \Drupal\DrupalGap\Controller\DrupalGapController::DrupalGapConfig()
  2. 8.0.x src/Controller/DrupalGapController.php \Drupal\DrupalGap\Controller\DrupalGapController::DrupalGapConfig()

Return the DrupalGap configuration page.

Return value

string A render array containing our DrupalGap configuration page content.

1 string reference to 'DrupalGapController::drupalgapConfig'
drupalgap.routing.yml in ./drupalgap.routing.yml
drupalgap.routing.yml

File

src/Controller/DrupalGapController.php, line 25
Contains \Drupal\drupalgap\Controller\DrupalGapController.

Class

DrupalGapController
Returns responses for DrupalGap module routes.

Namespace

Drupal\drupalgap\Controller

Code

public function drupalgapConfig() {
  $output = array();
  $output['drupalgap'] = array(
    '#attached' => array(
      'library' => array(
        'drupalgap/drupalgap.config',
      ),
    ),
    // Render the Status connection and some help docs.
    '#markup' => \Drupal::service('renderer')
      ->render($this
      ->drupalStatus()),
  );
  return $output;
}