public function BlazyManagerBase::entityLoad in Blazy 8.2
Same name and namespace in other branches
- 8 src/BlazyManagerBase.php \Drupal\blazy\BlazyManagerBase::entityLoad()
Returns a shortcut for loading a config entity: image_style, slick, etc.
3 calls to BlazyManagerBase::entityLoad()
- BlazyManager::createPlaceholder in src/
BlazyManager.php - Build thumbnails, also to provide placeholder for blur effect.
- BlazyManager::thumbnailAndPlaceholder in src/
BlazyManager.php - Build thumbnails, also to provide placeholder for blur effect.
- BlazyManagerBase::getCommonSettings in src/
BlazyManagerBase.php - Returns the common UI settings inherited down to each item.
File
- src/
BlazyManagerBase.php, line 202
Class
- BlazyManagerBase
- Implements BlazyManagerInterface.
Namespace
Drupal\blazyCode
public function entityLoad($id, $entity_type = 'image_style') {
return $this->entityTypeManager
->getStorage($entity_type)
->load($id);
}