public function PushEntities::showSkipped in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Controller/PushEntities.php \Drupal\cms_content_sync\Controller\PushEntities::showSkipped()
- 2.0.x src/Controller/PushEntities.php \Drupal\cms_content_sync\Controller\PushEntities::showSkipped()
Return value
$this
File
- src/
Controller/ PushEntities.php, line 87
Class
- PushEntities
- Pull controller.
Namespace
Drupal\cms_content_sync\ControllerCode
public function showSkipped() {
if ($count = count($this->_skippedNoFlow)) {
$list = [
'#theme' => 'item_list',
'#items' => $this
->getSkippedNoFlow(true),
];
\Drupal::messenger()
->addWarning(\Drupal::translation()
->translate("%count items were not pushed as they're not configured to be pushed: @items", [
'%count' => $count,
'@items' => \Drupal::service('renderer')
->render($list),
]));
}
if ($count = count($this->_skippedUnpushed)) {
$list = [
'#theme' => 'item_list',
'#items' => $this
->getSkippedUnpushed(true),
];
\Drupal::messenger()
->addStatus(\Drupal::translation()
->translate("%count items were not pushed as they weren't pushed before: @items", [
'%count' => $count,
'@items' => \Drupal::service('renderer')
->render($list),
]));
}
return $this;
}