/**
  * {inheritdoc}
  */
 public function getNodeName(NodeInterface $node)
 {
     /* @var $node FieldInstanceNode */
     $object = $node->getValue();
     if (!empty($object['label'])) {
         return (string) $object['label'];
     }
     $field = field_info_field($node->getFieldName());
     if (isset($field['label'])) {
         return $field['label'];
     }
 }