public static function BackgroundImageFormTrait::getElementInfoManager in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::getElementInfoManager()
- 2.0.x src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::getElementInfoManager()
Retrieves the Element Info Manager service.
Return value
\Drupal\Core\Render\ElementInfoManagerInterface
File
- src/
BackgroundImageFormTrait.php, line 373
Class
- BackgroundImageFormTrait
- Trait BackgroundImageFormTrait.
Namespace
Drupal\background_imageCode
public static function getElementInfoManager() {
if (!isset(self::$elementInfoManager)) {
self::$elementInfoManager = \Drupal::service('plugin.manager.element_info');
}
return self::$elementInfoManager;
}