SliceConverter implements IConverter
Table of Contents
Interfaces
Constants
- SLICE_SECTION_ID = 'BX_BLOCK_EDITOR_EDITABLE_SECTION'
Methods
- isValid() : bool
- Check string.
- sanitize() : string
- Sanitize.
- toArray() : BlockContent
- Parse string of sliced content to an array of content blocks.
- toString() : string
- Convert block content to string.
Constants
SLICE_SECTION_ID
public
mixed
SLICE_SECTION_ID
= 'BX_BLOCK_EDITOR_EDITABLE_SECTION'
Methods
isValid()
Check string.
public
static isValid(string $string) : bool
Parameters
- $string : string
-
String.
Return values
boolsanitize()
Sanitize.
public
static sanitize(string $string) : string
Parameters
- $string : string
-
String.
Return values
stringtoArray()
Parse string of sliced content to an array of content blocks.
public
static toArray(string $string) : BlockContent
Parameters
- $string : string
-
String.
Return values
BlockContenttoString()
Convert block content to string.
public
static toString(BlockContent $content) : string
Parameters
- $content : BlockContent
-
Block content.