Facebook_Group_Settings::set_properties()

Sets up the properties of the settings page


Source Source

File: src/integrations/facebook-groups/settings/settings-facebook-groups.php

	protected function set_properties() {

		$is_user_connected = $this->get_helper()->is_user_connected();

		$this->set_id( 'facebook-groups' );

		// This has same icon as Facebook.
		$this->set_icon( 'facebook' );

		$this->set_name( 'Facebook Groups' );

		$this->set_status( $is_user_connected ? 'success' : '' );

		if ( $is_user_connected ) {
			$this->set_js( '/facebook-groups/settings/assets/script.js' );
		}

		$this->set_css( '/facebook-groups/settings/assets/style.css' );

	}