public function Container::getParameter
public Container::getParameter($name)
File
- core/lib/Drupal/Component/DependencyInjection/Container.php, line 382
Class
- Container
- Provides a container optimized for Drupal's needs.
Namespace
Drupal\Component\DependencyInjectionCode
public function getParameter($name) { if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) { if (!$name) { throw new ParameterNotFoundException($name); } throw new ParameterNotFoundException($name, NULL, NULL, NULL, $this->getParameterAlternatives($name)); } return $this->parameters[$name]; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!DependencyInjection!Container.php/function/Container::getParameter/8.1.x