generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathHasSEOAttributes.php
More file actions
48 lines (39 loc) · 1.09 KB
/
HasSEOAttributes.php
File metadata and controls
48 lines (39 loc) · 1.09 KB
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
44
45
46
47
48
<?php
namespace Statikbe\FilamentFlexibleContentBlocks\Models\Contracts;
use Illuminate\Database\Eloquent\Relations\MorphMany;
/**
* @property string|null $seo_title
* @property string|null $seo_description
* @property array|null $seo_keywords
*/
interface HasSEOAttributes
{
/**
* Returns the media-library relation to the hero image.
*/
public function seoImage(): MorphMany;
/**
* Returns the SEO title
*/
public function getSEOTitle(): ?string;
/**
* Returns the SEO description
*/
public function getSEODescription(): ?string;
/**
* Add an SEO image to the model.
*/
public function addSEOImage(string $imagePath): void;
/**
* Returns the name of the media library conversion of the SEO image
*/
public function getSEOImageConversionName(): string;
/**
* Get the name of the media library collection of the SEO image
*/
public function getSEOImageCollection(): string;
/**
* Get URL of SEO image
*/
public function getSEOImageUrl(?string $conversion = null): ?string;
}