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