/**
  *
  */
 public function createConditionConfig($plugin_info) {
   $config = parent::createConditionConfig($plugin_info);
   $config['roles'] = array_filter($config['roles']);
   // @todo Dynamically figure out context by loading connect plugin?
   $config['context_mapping'] = [
     'user' => '@user.current_user_context:current_user',
   ];
   return $config;
 }
  /**
   *
   */
  public function createConditionElements() {
    $elements = parent::createConditionElements();

    $elements['condition_config'] = [
      '#type' => 'value',
      '#value' => [
        'pages' => $this->getPathPattern(),
      ],
    ];
    return $elements;
  }
 /**
  *
  */
 public function createConditionConfig($plugin_info) {
   $config = parent::createConditionConfig($plugin_info);
   $config['bundles'] = array_filter($config['bundles']);
   $config['context_mapping'] = [
     'node' => '@node.node_route_context:node',
   ];
   return $config;
 }