You are here

class DynamicLocalTasks in Campaign Monitor 8

Defines dynamic local tasks.

Hierarchy

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\Deriver
View 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

Namesort descending Modifiers Type Description Overrides
DeriverBase::$derivatives protected property List of derivative definitions. 1
DeriverBase::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
DynamicLocalTasks::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides DeriverBase::getDerivativeDefinitions