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