public function getLocationNodeTypes() {
    $fieldMap = $this->entityFieldManager->getFieldMap();
    $locationBundles = $fieldMap['node']['field_location_coordinates']['bundles'];
    $nodeTypes = $this->entityTypeManager->getStorage('node_type')->loadByProperties(['type' => array_keys($locationBundles)]);

    return $nodeTypes;
  }
public function getLocationNodeTypes() {
    $fieldMap = $this->entityFieldManager->getFieldMap();
    $locationBundles = $fieldMap['node']['field_location_coordinates']['bundles'];
    $nodeTypes = $this->entityTypeManager->getStorage('node_type')->loadByProperties(['type' => array_keys($locationBundles)]);

    return $nodeTypes;
  }
public function getLocationNodeTypes ( ) { $ fieldMap = $ this -> entityFieldManager -> getFieldMap ( ) ; $ locationBundles = $ fieldMap [ 'node' ] [ 'field_location_coordinates' ] [ 'bundles' ] ; $ nodeTypes = $ this -> entityTypeManager -> getStorage ( 'node_type' ) -> loadByProperties ( [ 'type' => array_keys ( $ locationBundles ) ] ) ; return $ nodeTypes ; }
Load all node types with 'field_location_address' field.

@return array
Array of node types.
Load all node types with field_location_address field .