Current Path : /storage/v11800/sahityaonline/public_html/wp-content/plugins/elementor/modules/favorites/

Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64

Upload File :
Current File : /storage/v11800/sahityaonline/public_html/wp-content/plugins/elementor/modules/favorites/favorites-type.php
<?php
namespace Elementor\Modules\Favorites;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Elementor\Core\Utils\Collection;
use Elementor\Core\Utils\Static_Collection;

abstract class Favorites_Type extends Static_Collection {

	public function __construct( array $items = [] ) {
		parent::__construct( $items, true );
	}

	/**
	 * Get the name of the type.
	 *
	 * @return mixed
	 */
	abstract public function get_name();

	/**
	 * Prepare favorites before taking any action.
	 *
	 * @param Collection|array|string $favorites
	 *
	 * @return array
	 */
	public function prepare( $favorites ) {
		if ( $favorites instanceof Collection ) {
			$favorites = $favorites->values();
		}

		if ( ! is_array( $favorites ) ) {
			return [ $favorites ];
		}

		return $favorites;
	}
}

Softgel-Capsule – Affy Pharma Pvt Ltd

Arrange A Callback
[]
1 Step 1
Full Name
Telephone
Departmentyour full name
Postal Address
Message
0 /
Previous
Next
Shopping Basket