ModerationStateTransitionListBuilder::__construct

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;
}
doc_Drupal
2016-10-29 09:29:05
Comments
Leave a Comment

Please login to continue.