1.2.383. 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.383.1. Specs

Short name

Vendors/Drupal

Rulesets

All, Appinfo, CE

Exakat since

1.0.3

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

Very high

Features

framework

Available in

Entreprise Edition, Community Edition, Exakat Cloud