Upgrade to 3.2.0

This commit is contained in:
Bastian Allgeier
2019-06-25 09:56:08 +02:00
parent 9e18cf635d
commit 9c89153d35
296 changed files with 14408 additions and 2504 deletions

View File

@@ -3,11 +3,16 @@
namespace Kirby\Cms;
use Closure;
use Kirby\Data\Data;
use Kirby\Exception\InvalidArgumentException;
use Kirby\Toolkit\F;
use Kirby\Toolkit\Str;
/**
* SiteActions
*
* @package Kirby Cms
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://getkirby.com/license
*/
trait SiteActions
{
@@ -44,7 +49,7 @@ trait SiteActions
* @param string|null $languageCode
* @return self
*/
public function changeTitle(string $title, string $languageCode = null): self
public function changeTitle(string $title, string $languageCode = null)
{
return $this->commit('changeTitle', [$this, $title, $languageCode], function ($site, $title, $languageCode) {
return $site->save(['title' => $title], $languageCode);
@@ -55,7 +60,7 @@ trait SiteActions
* Creates a main page
*
* @param array $props
* @return Page
* @return Kirby\Cms\Page
*/
public function createChild(array $props)
{
@@ -71,8 +76,10 @@ trait SiteActions
/**
* Clean internal caches
*
* @return self
*/
public function purge(): self
public function purge()
{
$this->children = null;
$this->blueprint = null;