Skip to content

Commit

Permalink
Merge pull request #18 from mooore-digital/feature/GIR-5932-aad-bread…
Browse files Browse the repository at this point in the history
…crumbs-to-category-stories

GIR-5932 IMP: add blog title to db
  • Loading branch information
JoshuavanGelder authored Jan 19, 2024
2 parents 4161c77 + b1e27fd commit 87838b2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Api/Data/SiteInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface SiteInterface extends ExtensibleDataInterface
const REPLACE_MEDIA_URLS = 'replace_media_urls';
const ENABLE_BLOG = 'enable_blog';
const ENABLE_BLOG_CATEGORIES = 'enable_blog_categories';
const BLOG_TITLE = 'blog_title';
const BLOG_PREFIX = 'blog_prefix';
const BLOG_STORES = 'blog_stores';

Expand Down Expand Up @@ -151,6 +152,19 @@ public function getEnableBlogCategories(): ?bool;
*/
public function setEnableBlogCategories(?bool $enableBlogCategories): SiteInterface;

/**
* Get blog_title
* @return string
*/
public function getBlogTitle(): ?string;

/**
* Set blog_title
* @param string $blogTitle
* @return SiteInterface
*/
public function setBlogTitle(?string $blogTitle);

/**
* Get blog_prefix
* @return string
Expand Down
21 changes: 20 additions & 1 deletion Model/Data/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,25 @@ public function setEnableBlogCategories(?bool $enableBlogCategories): SiteInterf
{
return $this->setData(self::ENABLE_BLOG_CATEGORIES, $enableBlogCategories);
}

/**
* Get blog_title
* @return string
*/
public function getBlogTitle(): ?string
{
return $this->_get(self::BLOG_TITLE);
}

/**
* Set blog_title
* @param string $blogTitle
* @return SiteInterface
*/
public function setBlogTitle(?string $blogTitle)
{
return $this->setData(self::BLOG_TITLE, $blogTitle);
}


/**
Expand All @@ -212,7 +231,7 @@ public function getBlogPrefix(): ?string

/**
* Set blog_prefix
* @param string $apiPassword
* @param string $blogPrefix
* @return SiteInterface
*/
public function setBlogPrefix(?string $blogPrefix)
Expand Down
1 change: 1 addition & 0 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<column default="0" name="enable_blog" nullable="false" xsi:type="boolean"/>
<column default="0" name="enable_blog_categories" nullable="false" xsi:type="boolean"/>
<column length="255" name="blog_prefix" nullable="true" xsi:type="varchar"/>
<column length="255" name="blog_title" nullable="true" xsi:type="varchar"/>
<column length="255" name="blog_stores" nullable="false" xsi:type="varchar"/>
</table>
</schema>

0 comments on commit 87838b2

Please sign in to comment.