Bundle/MediaBundle/Helper/RemoteSlide/RemoteSlideHandler.php 1 location
|
@@ 50-57 (lines=8) @@
|
47 |
|
* |
48 |
|
* @return bool |
49 |
|
*/ |
50 |
|
public function canHandle($object) |
51 |
|
{ |
52 |
|
if ((is_string($object)) || ($object instanceof Media && $object->getContentType() == self::CONTENT_TYPE)) { |
53 |
|
return true; |
54 |
|
} |
55 |
|
|
56 |
|
return false; |
57 |
|
} |
58 |
|
|
59 |
|
/** |
60 |
|
* @param Media $media |
Bundle/MediaBundle/Helper/RemoteVideo/RemoteVideoHandler.php 1 location
|
@@ 54-61 (lines=8) @@
|
51 |
|
* |
52 |
|
* @return bool |
53 |
|
*/ |
54 |
|
public function canHandle($object) |
55 |
|
{ |
56 |
|
if ((is_string($object)) || ($object instanceof Media && $object->getContentType() == self::CONTENT_TYPE)) { |
57 |
|
return true; |
58 |
|
} |
59 |
|
|
60 |
|
return false; |
61 |
|
} |
62 |
|
|
63 |
|
/** |
64 |
|
* @param Media $media |