Commit 1c7c7eae authored by lussoluca's avatar lussoluca

Revert "Fix compatibility with the latest release of Webform"

This reverts commit 6f7fb415.

Webform has been fixed in #2884528
parent 6f7fb415
......@@ -15,42 +15,42 @@ class ShortcutSetStorageDecorator extends ConfigEntityStorageDecorator implement
* {@inheritdoc}
*/
public function assignUser(ShortcutSetInterface $shortcut_set, $account) {
$this->getOriginalObject()->assignUser($shortcut_set, $account);
// TODO: Implement assignUser() method.
}
/**
* {@inheritdoc}
*/
public function unassignUser($account) {
return $this->getOriginalObject()->unassignUser($account);
// TODO: Implement unassignUser() method.
}
/**
* {@inheritdoc}
*/
public function deleteAssignedShortcutSets(ShortcutSetInterface $entity) {
$this->getOriginalObject()->deleteAssignedShortcutSets($entity);
// TODO: Implement deleteAssignedShortcutSets() method.
}
/**
* {@inheritdoc}
*/
public function getAssignedToUser($account) {
return $this->getOriginalObject()->getAssignedToUser($account);
// TODO: Implement getAssignedToUser() method.
}
/**
* {@inheritdoc}
*/
public function countAssignedUsers(ShortcutSetInterface $shortcut_set) {
return $this->getOriginalObject()->countAssignedUsers($shortcut_set);
// TODO: Implement countAssignedUsers() method.
}
/**
* {@inheritdoc}
*/
public function getDefaultSet(AccountInterface $account) {
return $this->getOriginalObject()->getDefaultSet($account);
// TODO: Implement getDefaultSet() method.
}
}
<?php
namespace Drupal\webprofiler\Entity\Decorators\Config;
use Drupal\webform\WebformEntityStorageInterface;
/**
* Class WebformStorageDecorator
*/
class WebformStorageDecorator extends ConfigEntityStorageDecorator implements WebformEntityStorageInterface {
/**
* {@inheritdoc}
*/
public function getCategories($template = NULL) {
return $this->getOriginalObject()->getCategories($template);
}
/**
* {@inheritdoc}
*/
public function getOptions($template = NULL) {
return $this->getOriginalObject()->getOptions($template);
}
}
......@@ -11,7 +11,6 @@ use Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator;
use Drupal\webprofiler\Entity\Decorators\Config\RoleStorageDecorator;
use Drupal\webprofiler\Entity\Decorators\Config\ShortcutSetStorageDecorator;
use Drupal\webprofiler\Entity\Decorators\Config\VocabularyStorageDecorator;
use Drupal\webprofiler\Entity\Decorators\Config\WebformStorageDecorator;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -99,9 +98,6 @@ class EntityManagerWrapper extends DefaultPluginManager implements EntityTypeMan
case 'shortcut_set':
return new ShortcutSetStorageDecorator($handler);
break;
case 'webform':
return new WebformStorageDecorator($handler);
break;
default:
return new ConfigEntityStorageDecorator($handler);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment