Custom twig function not rendering the same depending on where used

I have a custom twig function that outputs a form.
If I use in a .twig template (e.g. views-view-field.html.twig) it renders the form correctly.
However I need to use it within a Views field rewrite. Once I put it in there all I get for output is the following.

<div class="js-form-item form-item js-form-type-textfield form-item-lnid js-form-item-lnid">likedNode</div>

'likedNode' is the '#title' of the first field in the form.

Here is what my twig function looks like

How Design Content Type: Parent Children to nth Depth?

I have a content-type which can have parent-child relationships to n depth. I am wondering how best to design this in Drupal (D8).

My content type has a PDF file field and a few other descriptor fields. Users can upload a revised version of any PDF creating a new instance of content type. I want to be able to display the relationships between the instances. Although in theory they could reach any depth I anticipate children not exceeding 4 depths from an original parent.

Creating Content Types

Hi Everyone,

New question. I have watched about 10 youtube tutorials on creating new content types and I have a few questions that never seem to be answered....

Should I use Drupal for my web application?

Hi,

I am trying to find out if Drupal would be an appropriate software framework to use in order to develop my web application. We have experience with Drupal but have used and customized it as a CMS system to roll out websites. It works well for us. However, this one is more of a web app so I'm not sure.

Here is a summary of what we need.

Trouble with adding CSS to theme (Drupal 8) [Resolved]

Hello Drupal Community!

I'm (obviously) new to Drupal and have seen this question repeated a hundred times in the forums, but am unable to find clarity. It's likely I'm misunderstanding how to add CSS to an existing theme. This is on a local server so I'm seeking understanding rather than someone to fix this for me. From my understanding to add CSS/JS:

Add source to /themes/selected_theme/selected_theme.libraries.yml

Drupal 8 CkEditor

I do not see the links buttons in drupal 8 ckeditor. I would also like to add more buttons like color, etc...how do you add more buttons? I had them in drupal 7....
thanks for any answers...

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x