public ModerationStateTransitionListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $transition_storage, EntityStorageInterface $state_storage, RoleStorageInterface $role_storage)
Constructs a new ModerationStateTransitionListBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: Entity Type.
\Drupal\Core\Entity\EntityStorageInterface $transition_storage: Moderation state transition entity storage.
\Drupal\Core\Entity\EntityStorageInterface $state_storage: Moderation state entity storage.
\Drupal\user\RoleStorageInterface $role_storage: The role storage.
Overrides DraggableListBuilder::__construct
File
- core/modules/content_moderation/src/ModerationStateTransitionListBuilder.php, line 56
Class
- ModerationStateTransitionListBuilder
- Provides a listing of Moderation state transition entities.
Namespace
Drupal\content_moderation
Code
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $transition_storage, EntityStorageInterface $state_storage, RoleStorageInterface $role_storage) {
parent::__construct($entity_type, $transition_storage);
$this->stateStorage = $state_storage;
$this->roleStorage = $role_storage;
}
Please login to continue.