public function ModerationStateTransitionListBuilder::__construct in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/ModerationStateTransitionListBuilder.php \Drupal\workbench_moderation\ModerationStateTransitionListBuilder::__construct()
Constructs a new ModerationStateTransitionListBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type service.
\Drupal\Core\Entity\EntityStorageInterface $transition_storage: Entity transition storage.
\Drupal\Core\Entity\EntityStorageInterface $state_storage: Entity state storage.
Overrides DraggableListBuilder::__construct
File
- src/
ModerationStateTransitionListBuilder.php, line 44
Class
- ModerationStateTransitionListBuilder
- Provides a listing of Moderation state transition entities.
Namespace
Drupal\workbench_moderationCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $transition_storage, EntityStorageInterface $state_storage) {
parent::__construct($entity_type, $transition_storage);
$this->stateStorage = $state_storage;
}