1

No, not by itself. The Token Filter module's functionality adds a token input filter to text formats in Drupal. The only field types that can use text formats are the 3 Text (formatted) field types, not the Link field type. One can only speculate on the comment's solution you refer to. Text Formats/Input filters are designed to allow HTML input that should ...


1

The documentation is inevitably focused on PHP, since Drupal is written in PHP and server-side renders. And the answer to getting info from PHP/server side to JS/client side is not really Drupal specific. Like any other situation of this ilk in web development, you have two basic choices. Either annotate your HTML with enough elements, IDs and classes ...


1

I don't see anything obviously wrong in your code, but it would have been a better idea to post the 2 full examples (and ideally, you should try first a simple example that can be imported without custom plugins) Note that for the second YML file (the translation) you don't need to import most of the stuff: you basically need to process the id, the parent, ...


1

This is what I ended up using. use Drupal\menu_link_content\Entity\MenuLinkContent; \Drupal::entityTypeManager() ->getStorage('menu') ->create([ 'id' => 'test-menu', 'label' => 'Test menu', 'description' => 'Description text.', ]) ->save(); $menu_link_1 = MenuLinkContent::create([ 'title' => 'Link 1', 'link' =&...


Only top voted, non community-wiki answers of a minimum length are eligible