Let $M$ be a von Neumann algebra on a Hilbert space $\mathcal{H}$. Let $(M,G,\alpha)$ be a $W^*$-dynamical system. Let $G$ be discrete. Then the cross product von Neumann algebra $M\rtimes_\alpha G$ is defined in the Hilbert space $l^2(G,\mathcal{H})$. Now since $G$ is discrete we can write $l^2(G,\mathcal{H})=\oplus_{g \in G} \mathcal{H}\otimes \epsilon_g $ where $\epsilon_g$ is defined as $\epsilon_g(h)=\delta_{h,g}$. Using this identification we can write any element of $\mathcal{B}(l^2(G,\mathcal{H}))$ as matrix of operators on $H$.
Now let $P_g$ be the orthogonal projection onto the subspace $H\otimes \epsilon_g$ of $l^2(G,\mathcal{H})$. Then I saw a result (link given below), that the map $\phi: M\rtimes G \rightarrow M$ defined by $\phi(T)=\sum_gP_gTP_g$ where the sum is in the SOT topology is a conditional expectation. Interms of matrix representation of $M\rtimes G \subset \mathcal{B}(l^2(G,\mathcal{H}))$, I guess that the map $\phi$ is mapping a matrix to its diagonal? Is it true? How to prove it? Why does the sum infact belong to $M$?
https://www.jstor.org/stable/pdf/2373237.pdf
https://projecteuclid.org/download/pdf_1/euclid.tmj/1178241528