Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Hooks: Add controller to expose hooked blocks for a given anchor block #58622

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3b29871
Block Hooks: Add controller to expose hooked blocks for a given ancho…
ockham Feb 2, 2024
dfff06a
Set context to template if applicable
ockham Feb 2, 2024
2b91b16
Add get_context() method to resolve the requested entity context
tjcafferkey Feb 6, 2024
b58c917
Get all hooked blocks grouped by anchor block
tjcafferkey Feb 7, 2024
5727b03
Fix get_items() to include hooked blocks by filters
tjcafferkey Feb 8, 2024
ceaf354
Check if array is empty
tjcafferkey Feb 8, 2024
d93fbd7
Make get_items() work with the block hooks filter:
tjcafferkey Feb 8, 2024
00bc67f
Add TODO
tjcafferkey Feb 8, 2024
39b65b8
Add item schema
tjcafferkey Feb 8, 2024
fd24615
get_items(): Fix logic for hooked blocks by position
tjcafferkey Feb 9, 2024
e481e1c
Rename var
ockham Feb 9, 2024
0f60bd9
Use array_column
ockham Feb 9, 2024
8eb0f86
Missed one
ockham Feb 9, 2024
6f9d82b
Change schema title
ockham Feb 9, 2024
4790aaf
Try suppressing hooked blocks for context creation
ockham Feb 9, 2024
e7370b5
Refactor suppression of hooked blocks whilst getting context
tjcafferkey Feb 9, 2024
f5a494a
Initialize id
ockham Feb 9, 2024
ab8fc5b
Allow specifying no context
ockham Feb 9, 2024
ec2bb3d
Add route for namespace only
ockham Feb 9, 2024
5924d63
Add basic test coverage
ockham Feb 9, 2024
ebbfe81
Tweak schema
ockham Feb 9, 2024
648703a
Refactor getting hooked blocks via filter hook into its own method
tjcafferkey Feb 9, 2024
4f75d51
Update block registry reference
tjcafferkey Feb 9, 2024
e193ecd
Inline block names
ockham Feb 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading