-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHasOverviewAttributes.php
43 lines (34 loc) · 1.07 KB
/
HasOverviewAttributes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Statikbe\FilamentFlexibleContentBlocks\Models\Contracts;
use Spatie\MediaLibrary\MediaCollections\HtmlableMedia;
interface HasOverviewAttributes
{
/**
* Returns the overview title
*/
public function getOverviewTitle(): ?string;
/**
* Returns the overview description
*/
public function getOverviewDescription(): ?string;
/**
* Add overview image to the model
*/
public function addOverviewImage(string $imagePath): void;
/**
* Returns the media library conversion of the overview image
*/
public function getOverviewImageConversionName(): string;
/**
* Returns the media library collection of the overview image
*/
public function getOverviewImageCollection(): string;
/**
* Returns the overview image url
*/
public function getOverviewImageUrl(?string $conversion = null): ?string;
/**
* Get the html view of the overview image
*/
public function getOverviewImageMedia(?string $conversion = null, array $attributes = []): ?HtmlableMedia;
}