HandleBlocks
trait HandleBlocks (View source)
Properties
static protected | $hasRelatedTableCache |
Methods
TwillModelContract|null
hydrateHandleBlocks(TwillModelContract $object, array $fields, int $fakeBlockId = 0, int|null $parentId = null, Collection|null $blocksFromFields = null, Collection|null $mainCollection = null)
No description
Collection
getChildrenBlocks($blocks, $blockRepository, $parentId, $fakeBlockId, $mainCollection)
No description
void
array
array
void
afterDuplicateHandleBlocks(TwillModelContract $object, TwillModelContract $newObject)
No description
bool
hasRelatedTable()
No description
Details
TwillModelContract|null
hydrateHandleBlocks(TwillModelContract $object, array $fields, int $fakeBlockId = 0, int|null $parentId = null, Collection|null $blocksFromFields = null, Collection|null $mainCollection = null)
No description
protected Collection
getChildrenBlocks($blocks, $blockRepository, $parentId, $fakeBlockId, $mainCollection)
No description
void
afterSaveHandleBlocks(Model $object, array $fields)
No description
array
getFormFieldsHandleBlocks(Model $object, array $fields)
No description
protected array
getBlockBrowsers(Block $block)
No description
void
afterDuplicateHandleBlocks(TwillModelContract $object, TwillModelContract $newObject)
No description
protected bool
hasRelatedTable()
No description