Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<?php
/** * Splashing Images plugin for Craft CMS 3.x * * unsplash.com integration for Craft 3 * * @link https://studioespresso.co * * @copyright Copyright (c) 2017 Studio Espresso */
namespace studioespresso\splashingimages;
use CraftCms\Cms\Plugin\PluginSettings;
/** * SplashingImages Settings Model * * This is a model used to define the plugin's settings. * * Models are containers for data. Just about every time information is passed * between services, controllers, and templates in Craft, it’s passed via a model. * * https://craftcms.com/docs/plugins/models * * @author Studio Espresso * * @since 1.0.0 */class Settings extends PluginSettings{ // Public Properties // =========================================================================
/** * Some field model attribute */ public string $destination = '';
public string $folder = '';
public string $pluginLabel = 'Unsplash';
// Public Methods // =========================================================================
public function getRules(): array { return [ 'destination' => ['required', 'string'], ]; }}