BlogPost
class BlogPost extends TranslatableAbstract implements PrimaryKeyInterface, BlockEntity, RelationshipEntityInterface
Class BlogPost
Traits
Trait TinyMceMediaTrait
Properties
| protected string | $locale | Entity locale | from TranslatableAbstract |
| protected array | $mediaLinks | from TinyMceMediaTrait | |
| protected int | $id | ||
| protected string | $title | Title of blog post | |
| protected string | $content | Content of blog post | |
| protected string | $description | Description of blog post | |
| protected DateTime|null | $createdAt | Date when blog post created | |
| protected DateTime|null | $updatedAt | Date when blog post last updated | |
| protected string|null | $featuredVideo | Link to featured video | |
| protected bool|null | $visible | Visibility of blog post | |
| protected array|null | $metaKeywords | SEO meta keywords for blog post | |
| protected string|null | $metaTitle | SEO meta title for blog post | |
| protected string|null | $metaDescription | SEO meta description for blog post | |
| protected string|null | $permalink | Permalink for blog post, needs to be unique on database level | |
| protected string|null | $slug | Slug for blog post | |
| protected string|null | $imagePath | Base image URL of blog post image | |
| protected BlogCategory | $blogCategory | Blog category of blog post | |
| protected Image | $image | Feature image of blog post | |
| protected User | $user | User which created blog post | |
| protected ArrayCollection | $comments | All blog post comments |
Methods
__construct()
BlogPost constructor.
integer
getId()
No description
string
getTitle()
No description
string
getContent()
No description
setContent(string $content)
No description
DateTime|null
getCreatedAt()
No description
DateTime|null
getUpdatedAt()
No description
null|string
getFeaturedVideo()
No description
setFeaturedVideo(null|string $featuredVideo)
No description
getBlogCategory()
No description
ArrayCollection
getComments()
No description
setComments(ArrayCollection $comments)
No description
bool|null
isVisible()
No description
setVisible(bool|null $visible)
No description
array|null
getMetaKeywords()
No description
setMetaKeywords(array|null $metaKeywords)
No description
null|string
getMetaTitle()
No description
setMetaTitle(null|string $metaTitle)
No description
null|string
getMetaDescription()
No description
setMetaDescription(null|string $metaDescription)
No description
null|string
getSlug()
No description
null|string
getImagePath()
No description
setImagePath(null|string $imagePath)
No description
string
getDescription()
No description
setDescription(string $description)
No description
null|string
getPermalink()
No description
setPermalink(null|string $permalink)
No description
Details
in TranslatableAbstract at line 37
setTranslatableLocale(string $locale)
Sets translatable locale
in TranslatableAbstract at line 47
string
getTranslatableLocale()
in TinyMceMediaTrait at line 30
array
getMediaLinks()
in TinyMceMediaTrait at line 38
setMediaLinks(array $mediaLinks)
at line 250
__construct()
BlogPost constructor.