public function ContentDashboard::getDerivativeDefinitions in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Plugin/Derivative/ContentDashboard.php \Drupal\cms_content_sync\Plugin\Derivative\ContentDashboard::getDerivativeDefinitions()
- 2.0.x src/Plugin/Derivative/ContentDashboard.php \Drupal\cms_content_sync\Plugin\Derivative\ContentDashboard::getDerivativeDefinitions()
Gets the definition of all derivatives of a base plugin.
Parameters
array $base_plugin_definition: The definition array of the base plugin.
Return value
array An array of full derivative definitions keyed on derivative id.
Overrides DeriverBase::getDerivativeDefinitions
See also
getDerivativeDefinition()
File
- src/
Plugin/ Derivative/ ContentDashboard.php, line 44
Class
- ContentDashboard
- Derivative class that provides the menu links for the Products.
Namespace
Drupal\cms_content_sync\Plugin\DerivativeCode
public function getDerivativeDefinitions($base_plugin_definition) {
$links = [];
$links['content_dashboard'] = [
'title' => _cms_content_sync_get_repository_name(),
'menu_name' => 'admin',
'parent' => 'system.admin_content',
'route_name' => 'entity.cms_content_sync.content',
] + $base_plugin_definition;
return $links;
}