- ๐ฎ๐ณIndia prashant.c Dharamshala
prashant.c โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia prashant.c Dharamshala
prashant.c โ changed the visibility of the branch 2944554-allow-easily-creating to hidden.
- @prashantc opened merge request.
- ๐ฎ๐ณIndia prashant.c Dharamshala
Have just created an MR from the patch submitted in #18 โ . Going to test these methods locally first.
- ๐ฎ๐ณIndia prashant.c Dharamshala
- Type "modal" worked fine.
- Fixed issues for type "off_canvas"
- Handled for the "off_canvas_top"
To quickly test, return the following code in a block or controller:
Open link in a "modal" window:
$url = Url::fromRoute('entity.node.canonical', ['node' => 1], ['absolute' => TRUE]); $link = Link::fromTextAndUrl($this->t('Read more'), $url); $link->openInRenderer('modal'); return [ 'read_more' => $link->toRenderable(), ];
Open link in an "off-canvas" window:
$link->openInRenderer('off_canvas');
Open link in an "off_canvas_top" window:
$link->openInRenderer('off_canvas', ['position' => 'top']);
- ๐ฎ๐ณIndia prashant.c Dharamshala
A review of the current code is needed before moving forward with this. After that, we can go ahead with writing tests for this.