array( $this, 'render' ), ) ); } /** * @param array $attributes Block attributes. * @return string */ public function render( $attributes ) { $limit = isset( $attributes['limit'] ) ? absint( $attributes['limit'] ) : 20; return ForWP_Notifications_List_Renderer::render( $limit ); } }