1.2.385. Drupal Usage

This analysis reports usage of the Drupal CMS. The report is based on the usage of Drupal namespace.

<?php

namespace Drupal\example\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * An example controller.
 */
class ExampleController extends ControllerBase {

  /**
   * {@inheritdoc}
   */
  public function content() {
    $build = array(
      '#type' => 'markup',
      '#markup' => t('Hello World!'),
    );
    return $build;
  }

}

?>

See also Drupal.

1.2.385.1. Connex PHP features

1.2.385.1.1. Specs

Short name

Vendors/Drupal

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

1.0.3

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud