New answers tagged

0

Menu items are nested using the item path. Take look to the paragraphs module: /** * Implements hook_menu(). */ function paragraphs_menu() { $items = array(); $items['admin/structure/paragraphs'] = array( 'title' => 'Paragraph Bundles', 'description' => 'Manage Paragraph bundles', 'page callback' => '...


0

I know it's horrible, but if nothing else works: {{ link|replace({'internal:':''}) }} My situation: accessing a Link field via an overridden views template: views-view-fields.html.twig I had to get the variable from: row._entity.field_machine_name.value.0.uri (I gave up trying to use the fields variable, you can seemingly get a .content property out of ...


Top 50 recent answers are included