private function getViewModeList()
    {
        $ret = [];
        $entityInfo = entity_get_info('node');

        foreach ($entityInfo['view modes'] as $viewMode => $info) {
            $ret[$viewMode] = $info['label'];
        }

        return $ret;
    }