TwillBlockComponent
abstract class TwillBlockComponent extends Component (View source)
Properties
Block|null | $block | ||
RenderData|null | $renderData | ||
bool | $inEditor |
Methods
No description
No description
No description
No description
No description
This string should contain no special characters or spaces.
No description
You can use this method to use a form field to get the title of the block in the used blocks list.
If the prefix should be hidden when using getBlockTitleField.
No description
No description
No description
No description
No description
No description
Details
final
__construct()
No description
static TwillBlockComponent
forRendering(Block $block, RenderData $renderData, bool $inEditor)
No description
string|null
image(string $role, string $crop = 'default', array $params = [])
No description
mixed
input(string $fieldName)
No description
mixed
translatedInput(string $fieldName)
No description
static array
getCrops()
No description
static string
getBlockIdentifier()
This string should contain no special characters or spaces.
It will be used as the database identifier for the block, it should not change dynamically nor should it overlap with an existing block.
Collection
repeater(string $repeaterName)
No description
static string|null
getBlockTitleField()
You can use this method to use a form field to get the title of the block in the used blocks list.
By default this will be prefixed with getBlockTitle, you can disable that by returning true in shouldHidePrefix.
static bool
shouldHidePrefix()
If the prefix should be hidden when using getBlockTitleField.
static string
getBlockTitle()
No description
static string
getBlockGroup()
No description
static string
getBlockIcon()
No description
array
getValidationRules()
No description
array
getTranslatableValidationRules()
No description
abstract Form
getForm()
No description
final View
renderForm()
No description