You are here

protected function PushEntities::getLabels in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Controller/PushEntities.php \Drupal\cms_content_sync\Controller\PushEntities::getLabels()
  2. 2.0.x src/Controller/PushEntities.php \Drupal\cms_content_sync\Controller\PushEntities::getLabels()

Parameters

$entities:

Return value

array

2 calls to PushEntities::getLabels()
PushEntities::getSkippedNoFlow in src/Controller/PushEntities.php
PushEntities::getSkippedUnpushed in src/Controller/PushEntities.php

File

src/Controller/PushEntities.php, line 334

Class

PushEntities
Pull controller.

Namespace

Drupal\cms_content_sync\Controller

Code

protected function getLabels($entities) {
  $result = [];
  foreach ($entities as $entity) {
    $result[] = $entity
      ->label();
  }
  return $result;
}