public static function loadWithContentStreamContext($identifier, Context $context) { $identifier = (int) $identifier; if ($identifier > 0) { return $context->getNavigationController()->getEntity($identifier); } }
/** * @inheritdoc */ public static function loadWithContentStreamContext($value, Context $context) { return $context->getImageManager()->load($value); }