How to get field value in Drupal 8.

<?php
  $values
= $node->get('field_name')->getValue();
?>
Tags