public function BlazyManagerBase::entityLoad in Blazy 8
Same name and namespace in other branches
- 8.2 src/BlazyManagerBase.php \Drupal\blazy\BlazyManagerBase::entityLoad()
Returns a shortcut for loading a config entity: image_style, slick, etc.
3 calls to BlazyManagerBase::entityLoad()
- BlazyFormatterManager::buildSettings in src/
BlazyFormatterManager.php - Returns the field formatter settings inherited by child elements.
- BlazyManager::buildDataBlazy in src/
BlazyManager.php - Builds breakpoints suitable for top-level [data-blazy] wrapper attributes.
- BlazyManager::setDimensionsOnce in src/
BlazyManager.php - Sets dimensions once to reduce method calls, if image style contains crop.
File
- src/
BlazyManagerBase.php, line 126
Class
- BlazyManagerBase
- Implements BlazyManagerInterface.
Namespace
Drupal\blazyCode
public function entityLoad($id, $entity_type = 'image_style') {
return $this->entityTypeManager
->getStorage($entity_type)
->load($id);
}