You are here

protected function ContentSyncManager::isValidFilename in Content Synchronization 8.2

Same name and namespace in other branches
  1. 3.0.x src/ContentSyncManager.php \Drupal\content_sync\ContentSyncManager::isValidFilename()

Checks filename structure

Parameters

$filename:

Return value

bool

1 call to ContentSyncManager::isValidFilename()
ContentSyncManager::generateImportQueue in src/ContentSyncManager.php

File

src/ContentSyncManager.php, line 124

Class

ContentSyncManager

Namespace

Drupal\content_sync

Code

protected function isValidFilename($filename) {
  $parts = explode(static::DELIMITER, $filename);
  return count($parts) === 3;
}