ThumbnailRepository
class ThumbnailRepository extends Repository (View source)
A repository for Thumbnails
Note that this repository is not part of the public API. Use the asset's getThumbnail() method instead.
Properties
| protected EntityManagerInterface | $entityManager | ||
| protected LoggerInterface | $logger |
Methods
Find all objects and return an iterable
Find ungenerated objects and return an iterable
Count ungenerated objects
Returns a thumbnail of the given asset with the specified dimensions.
store via DBAL to avoid errors caused by concurrent creation of thumbnails - see https://github.com/neos/neos-development-collection/issues/3479#issuecomment-1016375400
<int, \Neos\Media\Domain\Model\Thumbnail> findByResource(\Neos\Flow\ResourceManagement\PersistentResource $resource)
Details
iterable
findAllIterator(string $configurationHash = null)
Find all objects and return an iterable
iterable
findUngeneratedIterator()
Find ungenerated objects and return an iterable
int
countUngenerated()
Count ungenerated objects
Thumbnail|null
findOneByAssetAndThumbnailConfiguration(AssetInterface $asset, ThumbnailConfiguration $configuration)
Returns a thumbnail of the given asset with the specified dimensions.
Thumbnail|null
persistThumbnailDirectly(Thumbnail $thumbnail, ThumbnailConfiguration $configuration)
store via DBAL to avoid errors caused by concurrent creation of thumbnails - see https://github.com/neos/neos-development-collection/issues/3479#issuecomment-1016375400
void
iterable()
<int, \Neos\Media\Domain\Model\Thumbnail> findByResource(\Neos\Flow\ResourceManagement\PersistentResource $resource)