a-blog cms PHP API Reference

HtmlFunctionTagHandler
in package
implements FunctionTagHandler

HTMLブロックの展開ハンドラ。

編集者が記述したHTMLをそのまま返す。危険なタグの除去は、他のフィールドと同じく 出力時のサニタイズ(strip_dangerous_tag / dangerous_tags、テンプレート側の [allow_dangerous_tag])に委ねるため、ここでは加工しない。

Table of Contents

Interfaces

FunctionTagHandler
機能タグ(`<acms-block-editor-function-tag data-block-type="...">`)を 公開HTMLへ展開するハンドラ。

Methods

getBlockType()  : string
担当する data-block-type の値
render()  : string
ブロックが保持する props から、公開HTMLへ差し込む文字列を組み立てる

Methods

getBlockType()

担当する data-block-type の値

public getBlockType() : string

同じ値のハンドラを後から登録した場合は、後勝ちで置き換わる。

Return values
string

render()

ブロックが保持する props から、公開HTMLへ差し込む文字列を組み立てる

public render(array<string|int, mixed> $props[, array<string|int, mixed> $context = [] ]) : string
Parameters
$props : array<string|int, mixed>
$context : array<string|int, mixed> = []
Return values
string

        
On this page

Search results