Skip to content

Commit

Permalink
Provide wysiwyg parameter when create content blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilov committed Apr 20, 2018
1 parent 2b7acd1 commit 0b487de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Extension/CmsTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,18 @@ public function getJson(string $url): array
* @param string $category
* @param string $blockName
* @param string $default
* @param bool $wysiwyg
* @return string
*/
public function content(string $category, string $blockName, string $default = null): string
public function content(string $category, string $blockName, string $default = null, $wysiwyg = false): string
{
if ($this->markupMode) {
return $default;
}

$contentBlockManager = $this->contentBlockManager;

return $contentBlockManager->getContentBlock($category, $blockName, $default);
return $contentBlockManager->getContentBlock($category, $blockName, $default, $wysiwyg);
}

/**
Expand Down Expand Up @@ -239,7 +240,7 @@ public function isEditable(): bool
$this->editable &&
$this->apiToken &&
$cmsRestClient->validateToken($this->apiToken)
;
;
}

/**
Expand Down

0 comments on commit 0b487de

Please sign in to comment.