You are here

private function DefaultContentDeployCommands::isAllSkip in Default Content Deploy 8

Is update or create not exist.

Return value

bool

1 call to DefaultContentDeployCommands::isAllSkip()
DefaultContentDeployCommands::contentDeployImport in src/Commands/DefaultContentDeployCommands.php
Import all the content defined in a content directory.

File

src/Commands/DefaultContentDeployCommands.php, line 381

Class

DefaultContentDeployCommands
Class DefaultContentDeployCommands.

Namespace

Drupal\default_content_deploy\Commands

Code

private function isAllSkip() {
  $result = $this->importer
    ->getResult();
  $array_column = array_column($result, 'status');
  $count = array_count_values($array_column);
  $create_count = isset($count['create']) ? $count['create'] : 0;
  $update_count = isset($count['update']) ? $count['update'] : 0;
  return $create_count == 0 && $update_count == 0;
}