public function EnvironmentIndicator::getInfo in Environment Indicator 8.3
Same name and namespace in other branches
- 4.x src/Element/EnvironmentIndicator.php \Drupal\environment_indicator\Element\EnvironmentIndicator::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Container::getInfo
File
- src/
Element/ EnvironmentIndicator.php, line 29
Class
- EnvironmentIndicator
- Provides a render element to add the environment indicator to the page.
Namespace
Drupal\environment_indicator\ElementCode
public function getInfo() {
$info = parent::getInfo();
$info['#theme_wrappers'][] = 'environment_indicator';
return $info;
}