public static function ContainerBuilder::getServiceConditionals in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::getServiceConditionals()
Returns the Service Conditionals.
Parameters
mixed $value An array of conditionals to return.:
Return value
array An array of Service conditionals
3 calls to ContainerBuilder::getServiceConditionals()
- ContainerBuilder::callMethod in lib/
Drupal/ Core/ DependencyInjection/ ContainerBuilder.php - A 1to1 copy of parent::callMethod.
- ContainerBuilder::callMethod in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerBuilder.php - PhpDumper::wrapServiceConditionals in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Wraps the service conditionals.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerBuilder.php, line 1088
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public static function getServiceConditionals($value) {
$services = array();
if (is_array($value)) {
foreach ($value as $v) {
$services = array_unique(array_merge($services, self::getServiceConditionals($v)));
}
}
elseif ($value instanceof Reference && $value
->getInvalidBehavior() === ContainerInterface::IGNORE_ON_INVALID_REFERENCE) {
$services[] = (string) $value;
}
return $services;
}