You are here

class Drupal7 in Service Container 8

Same name and namespace in other branches
  1. 7.2 src/Legacy/Drupal7.php \Drupal\service_container\Legacy\Drupal7
  2. 7 src/Legacy/Drupal7.php \Drupal\service_container\Legacy\Drupal7

Defines the Drupal 7 legacy service.

@method void drupal_set_message(string $message = NULL, string $type = 'status', bool $repeat = TRUE) @method mixed drupal_get_message(string $message = NULL, string $type = 'status', bool $repeat = TRUE)

@codeCoverageIgnore

Hierarchy

  • class \Drupal\service_container\Legacy\Drupal7

Expanded class hierarchy of Drupal7

3 files declare their use of Drupal7
LegacyDrupal7Test.php in tests/src/Legacy/LegacyDrupal7Test.php
Contains \Drupal\Tests\service_container\Legacy\LegacyDrupal7Test.
LegacyMessenger.php in src/Messenger/LegacyMessenger.php
Contains \Drupal\service_container\LegacyMessenger.
LegacyMessengerTest.php in tests/src/Messenger/LegacyMessengerTest.php
Contains \Drupal\Tests\service_container\Messenger\LegacyMessengerTest.
1 string reference to 'Drupal7'
service_container.services.yml in ./service_container.services.yml
service_container.services.yml
1 service uses Drupal7
drupal7 in ./service_container.services.yml
Drupal\service_container\Legacy\Drupal7

File

src/Legacy/Drupal7.php, line 18
Contains \Drupal\service_container\Legacy\Drupal7.

Namespace

Drupal\service_container\Legacy
View source
class Drupal7 {
  public function __call($method, $args) {
    return call_user_func_array($method, $args);
  }

}

Members