function ElementInfoManager::getInfoProperty
Same name in other branches
- 9 core/lib/Drupal/Core/Render/ElementInfoManager.php \Drupal\Core\Render\ElementInfoManager::getInfoProperty()
- 10 core/lib/Drupal/Core/Render/ElementInfoManager.php \Drupal\Core\Render\ElementInfoManager::getInfoProperty()
- 11.x core/lib/Drupal/Core/Render/ElementInfoManager.php \Drupal\Core\Render\ElementInfoManager::getInfoProperty()
Overrides ElementInfoManagerInterface::getInfoProperty
File
-
core/
lib/ Drupal/ Core/ Render/ ElementInfoManager.php, line 87
Class
- ElementInfoManager
- Provides a plugin manager for element plugins.
Namespace
Drupal\Core\RenderCode
public function getInfoProperty($type, $property_name, $default = NULL) {
$info = $this->getInfo($type);
return isset($info[$property_name]) ? $info[$property_name] : $default;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.