D7=>D8 – Display edit link inside nodes

My first steps in Drupal 8

For theme reason i prefer that users may have the ‘edit link’  directly into the node instead of menu tabs. In D7 it was very simple, just inserted in node–type.tpl.php this php

if (node_access('update', $nid , $user))
{
echo "<div class='div-edit-node' title='Edit'><p class = 'edit-node'>".l('Edit', 'node/'.$nid.'/edit')."</p></div>";

But how to in Drupal 8 ?

Thanks for help

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed