|
|
|
@ -3,12 +3,9 @@
|
|
|
|
|
namespace Drupal\islandora\Plugin\Action; |
|
|
|
|
|
|
|
|
|
use Drupal\Core\Config\ConfigFactoryInterface; |
|
|
|
|
use Drupal\Core\Entity\EntityInterface; |
|
|
|
|
use Drupal\Core\Entity\EntityTypeManagerInterface; |
|
|
|
|
use Drupal\Core\Form\FormStateInterface; |
|
|
|
|
use Drupal\Core\Messenger\MessengerInterface; |
|
|
|
|
use Drupal\Core\Session\AccountInterface; |
|
|
|
|
use Drupal\Core\Url; |
|
|
|
|
use Drupal\islandora\IslandoraUtils; |
|
|
|
|
use Drupal\islandora\EventGenerator\EmitEvent; |
|
|
|
|
use Drupal\islandora\EventGenerator\EventGeneratorInterface; |
|
|
|
@ -21,8 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|
|
|
|
/** |
|
|
|
|
* A base class for constructor/creator derivative generators. |
|
|
|
|
*/ |
|
|
|
|
class AbstractGenerateDerivativeBase extends EmitEvent |
|
|
|
|
{ |
|
|
|
|
class AbstractGenerateDerivativeBase extends EmitEvent { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Islandora utility functions. |
|
|
|
@ -125,8 +121,7 @@ class AbstractGenerateDerivativeBase extends EmitEvent
|
|
|
|
|
/** |
|
|
|
|
* {@inheritdoc} |
|
|
|
|
*/ |
|
|
|
|
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) |
|
|
|
|
{ |
|
|
|
|
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
|
|
|
|
return new static( |
|
|
|
|
$configuration, |
|
|
|
|
$plugin_id, |
|
|
|
@ -143,4 +138,5 @@ class AbstractGenerateDerivativeBase extends EmitEvent
|
|
|
|
|
$container->get('config.factory') |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|