public function ShowUsage::content in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Controller/ShowUsage.php \Drupal\cms_content_sync\Controller\ShowUsage::content()
- 2.0.x src/Controller/ShowUsage.php \Drupal\cms_content_sync\Controller\ShowUsage::content()
Parameters
$entity_id:
$entity_type:
mixed $entity:
Return value
array the content array to theme the introduction
1 string reference to 'ShowUsage::content'
File
- src/
Controller/ ShowUsage.php, line 19
Class
- ShowUsage
- Push changes controller.
Namespace
Drupal\cms_content_sync\ControllerCode
public function content($entity, $entity_type) {
$entity = \Drupal::entityTypeManager()
->getStorage($entity_type)
->load($entity);
return [
'#usage' => _cms_content_sync_display_pool_usage($entity),
'#theme' => 'cms_content_sync_show_usage',
];
}