mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add asset/log/plan action links to farm.dashboard.
This commit is contained in:
parent
bdb067cf47
commit
d10c757bfd
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ class FarmActions extends DeriverBase {
|
|||
}
|
||||
}
|
||||
|
||||
// Add it to farm.dashboard, if the farm_dashboard module is enabled.
|
||||
if (\Drupal::moduleHandler()->moduleExists('farm_dashboard')) {
|
||||
$this->derivatives[$name]['appears_on'][] = 'farm.dashboard';
|
||||
}
|
||||
|
||||
// Generate a link to [entity-type]/add/[bundle].
|
||||
$name = 'farm.add.' . $type . '.bundle';
|
||||
$this->derivatives[$name] = $base_plugin_definition;
|
||||
|
|
Loading…
Reference in a new issue