$element = [ '#theme' => 'application_info', '#application_type_label' => $application->getApplicationType()->label(), '#funding_amount' => $application->getFundingAmountPrinted(), '#project_leader' => [ 'first_name' => $advisor_address->given_name, 'last_name' => $advisor_address->family_name, 'phone' => $advisor->get('field_ezs_festnetz_telefon')->value, ], '#files' => [], '#criteria_link' => Url::fromRoute('application.application_files', [ 'application_type' => $application->bundle(), 'file_type' => 'criteria', ])->toString(), // [ // '#type' => 'link', // '#title' => t('Here'), // '#url' => Url::fromRoute('application.application_files', [ // 'application_type' => $application->bundle(), // 'file_type' => 'criteria', // ]) // ], '#cache' => [ 'context' => [ 'user.roles', 'languages:language_interface', ] ] ];
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter