protected function PhpArrayDumper::getServiceAliasDefinition in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper::getServiceAliasDefinition()
Returns a service alias definiton.
Parameters
string $alias:
Alias $id:
Return value
string
1 call to PhpArrayDumper::getServiceAliasDefinition()
- PhpArrayDumper::getServiceDefinitions in lib/
Drupal/ Core/ DependencyInjection/ Dumper/ PhpArrayDumper.php - Returns services of the container as a PHP Array.
File
- lib/
Drupal/ Core/ DependencyInjection/ Dumper/ PhpArrayDumper.php, line 224 - Contains \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper
Class
- PhpArrayDumper
- PhpArrayDumper dumps a service container as a serialized PHP array.
Namespace
Drupal\Core\DependencyInjection\DumperCode
protected function getServiceAliasDefinition($id) {
if ($id
->isPublic()) {
return array(
'alias' => (string) $id,
);
}
else {
return array(
'alias' => (string) $id,
'public' => FALSE,
);
}
}