Inpsyde\MultilingualPress\Common\Locations::get PHP Метод

get() публичный Метод

Returns the location data according to the given arguments.
public get ( string $name, string $type ) : string
$name string Location name.
$type string Location type.
Результат string Location data.
    public function get($name, $type);

Usage Example

Пример #1
0
 /**
  * Constructor. Sets up the properties.
  *
  * @since 3.0.0
  *
  * @param Locations $internal_locations MultilingualPress-specific locations object.
  */
 public function __construct(Locations $internal_locations)
 {
     $this->internal_script_path = $internal_locations->get('js', Locations::TYPE_PATH);
     $this->internal_script_url = $internal_locations->get('js', Locations::TYPE_URL);
     $this->internal_style_path = $internal_locations->get('css', Locations::TYPE_PATH);
     $this->internal_style_url = $internal_locations->get('css', Locations::TYPE_URL);
 }