function Service::isDecorated

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::isDecorated()
  2. 10 core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::isDecorated()
  3. 11.x core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::isDecorated()

Determines if the service is decorated.

Return value

bool TRUE if the services is decorated, FALSE if not.

File

core/modules/system/tests/modules/new_dependency_test/src/Service.php, line 35

Class

Service
A service that can decorated itself.

Namespace

Drupal\new_dependency_test

Code

public function isDecorated() {
    return isset($this->inner);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.