Update Composer packages
This commit is contained in:
parent
67c3d8b307
commit
83cb211fe6
219 changed files with 6487 additions and 4444 deletions
|
@ -96,7 +96,7 @@ class Page extends ModelWithContent
|
|||
* The template, that should be loaded
|
||||
* if it exists
|
||||
*
|
||||
* @var \Kirby\Cms\Template
|
||||
* @var \Kirby\Template\Template
|
||||
*/
|
||||
protected $intendedTemplate;
|
||||
|
||||
|
@ -143,7 +143,7 @@ class Page extends ModelWithContent
|
|||
/**
|
||||
* The intended page template
|
||||
*
|
||||
* @var \Kirby\Cms\Template
|
||||
* @var \Kirby\Template\Template
|
||||
*/
|
||||
protected $template;
|
||||
|
||||
|
@ -504,7 +504,7 @@ class Page extends ModelWithContent
|
|||
* Returns the template that should be
|
||||
* loaded if it exists.
|
||||
*
|
||||
* @return \Kirby\Cms\Template
|
||||
* @return \Kirby\Template\Template
|
||||
*/
|
||||
public function intendedTemplate()
|
||||
{
|
||||
|
@ -1096,7 +1096,7 @@ class Page extends ModelWithContent
|
|||
/**
|
||||
* @internal
|
||||
* @param mixed $type
|
||||
* @return \Kirby\Cms\Template
|
||||
* @return \Kirby\Template\Template
|
||||
* @throws \Kirby\Exception\NotFoundException If the content representation cannot be found
|
||||
*/
|
||||
public function representation($type)
|
||||
|
@ -1277,13 +1277,13 @@ class Page extends ModelWithContent
|
|||
public function slug(string $languageCode = null): string
|
||||
{
|
||||
if ($this->kirby()->multilang() === true) {
|
||||
if ($languageCode === null) {
|
||||
$languageCode = $this->kirby()->languageCode();
|
||||
}
|
||||
|
||||
$languageCode ??= $this->kirby()->languageCode();
|
||||
$defaultLanguageCode = $this->kirby()->defaultLanguage()->code();
|
||||
|
||||
if ($languageCode !== $defaultLanguageCode && $translation = $this->translations()->find($languageCode)) {
|
||||
if (
|
||||
$languageCode !== $defaultLanguageCode &&
|
||||
$translation = $this->translations()->find($languageCode)
|
||||
) {
|
||||
return $translation->slug() ?? $this->slug;
|
||||
}
|
||||
}
|
||||
|
@ -1313,7 +1313,7 @@ class Page extends ModelWithContent
|
|||
/**
|
||||
* Returns the final template
|
||||
*
|
||||
* @return \Kirby\Cms\Template
|
||||
* @return \Kirby\Template\Template
|
||||
*/
|
||||
public function template()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue