You are here

public static function BackgroundImageFormTrait::getElementInfoManager in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::getElementInfoManager()
  2. 2.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_image

Code

public static function getElementInfoManager() {
  if (!isset(self::$elementInfoManager)) {
    self::$elementInfoManager = \Drupal::service('plugin.manager.element_info');
  }
  return self::$elementInfoManager;
}