class DynamicLocalTasks in Campaign Monitor 8
Defines dynamic local tasks.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\campaignmonitor_user\Plugin\Deriver\DynamicLocalTasks
Expanded class hierarchy of DynamicLocalTasks
1 string reference to 'DynamicLocalTasks'
- campaignmonitor_user.links.task.yml in modules/
campaignmonitor_user/ campaignmonitor_user.links.task.yml - modules/campaignmonitor_user/campaignmonitor_user.links.task.yml
File
- modules/
campaignmonitor_user/ src/ Plugin/ Deriver/ DynamicLocalTasks.php, line 10
Namespace
Drupal\campaignmonitor_user\Plugin\DeriverView source
class DynamicLocalTasks extends DeriverBase {
/**
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
// Implement dynamic logic to provide values for the edit tab.
$this->derivatives['campaignmonitor.user.campaignmonitor_edit_subscriptions_form'] = $base_plugin_definition;
$this->derivatives['campaignmonitor.user.campaignmonitor_edit_subscriptions_form']['title'] = "Edit";
$this->derivatives['campaignmonitor.user.campaignmonitor_edit_subscriptions_form']['base_route'] = "campaignmonitor.user.subscriptions";
$this->derivatives['campaignmonitor.user.campaignmonitor_edit_subscriptions_form']['route_parameters']['user'] = 1;
$this->derivatives['campaignmonitor.user.campaignmonitor_edit_subscriptions_form']['route_name'] = 'campaignmonitor.user.subscriptions_edit';
return $this->derivatives;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
DynamicLocalTasks:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: |