MoveBlockController
class MoveBlockController implements ContainerInjectionInterface (View source)
| internal | Controller classes are internal. |
Defines a controller to move a block.
Traits
Provides AJAX responses to rebuild the Layout Builder.
Properties
| protected LayoutTempstoreRepositoryInterface | $layoutTempstoreRepository | The layout tempstore repository. |
Methods
LayoutController constructor.
Instantiates a new instance of this class.
Moves a block to another region.
Details
protected AjaxResponse
rebuildAndClose(SectionStorageInterface $section_storage)
Rebuilds the layout.
protected AjaxResponse
rebuildLayout(SectionStorageInterface $section_storage)
Rebuilds the layout.
__construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository)
LayoutController constructor.
static
create(ContainerInterface $container)
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
AjaxResponse
build(SectionStorageInterface $section_storage, int $delta_from, int $delta_to, string $region_to, string $block_uuid, string|null $preceding_block_uuid = NULL)
Moves a block to another region.