You are here

public static function TomeSyncHelper::getPartsFromContentName in Tome 8

Gets the parts from a content name.

Parameters

string $name: A content name.

Return value

array A 3-tuple in the format [entity_type_id, uuid, langcode].

5 calls to TomeSyncHelper::getPartsFromContentName()
CleanFilesCommand::getUnusedFiles in modules/tome_sync/src/Commands/CleanFilesCommand.php
Assembles a list of files that should be unused.
ImportContentCommand::execute in modules/tome_sync/src/Commands/ImportContentCommand.php
ImportPartialCommand::execute in modules/tome_sync/src/Commands/ImportPartialCommand.php
ImportPartialForm::deleteContent in modules/tome_sync/src/Form/ImportPartialForm.php
Batch callback to delete content or a content translation.
ImportPartialForm::importContent in modules/tome_sync/src/Form/ImportPartialForm.php
Batch callback to import content or add a content translation.

File

modules/tome_sync/src/TomeSyncHelper.php, line 68

Class

TomeSyncHelper
Provides helpers for the Tome Sync module.

Namespace

Drupal\tome_sync

Code

public static function getPartsFromContentName($name) {
  $parts = explode('.', $name);
  return [
    $parts[0],
    $parts[1],
    isset($parts[2]) ? $parts[2] : NULL,
  ];
}