How to understand ‘Allah is pleased’ or ‘displeased’

Does Allah have emotions in the way we think, since we say,  ‘Allah is pleased’ or ‘Allah is displeased’?