splide-1.0.x-dev/src/Entity/SplideBaseInterface.php

src/Entity/SplideBaseInterface.php
<?php

namespace Drupal\splide\Entity;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining a Splide entity.
 */
interface SplideBaseInterface extends ConfigEntityInterface {

  /**
   * Returns the Splide options by group, or property.
   *
   * @param string $group
   *   The name of setting group: settings, breakpoints.
   * @param string $property
   *   The name of specific property: prev, nexArrow.
   *
   * @return mixed|array|null
   *   Available options by $group, $property, all, or NULL.
   */
  public function getOptions($group = NULL, $property = NULL);

  /**
   * Returns the array of splide settings.
   *
   * @param bool $ansich
   *   Whether to return the settings as is.
   *
   * @return array
   *   The array of settings.
   */
  public function getSettings($ansich = FALSE);

  /**
   * Sets the array of splide settings.
   *
   * @param array $settings
   *   The new array of settings.
   *
   * @return $this
   *   The class instance that this method is called on.
   */
  public function setSettings(array $settings = []);

  /**
   * Returns the value of a setting.
   *
   * @param string $name
   *   The setting name.
   * @param bool|string|null $default
   *   The default value.
   *
   * @return mixed
   *   The setting value.
   */
  public function getSetting($name, $default = NULL);

  /**
   * Sets the value of a splide setting.
   *
   * @param string $setting_name
   *   The setting name.
   * @param string $value
   *   The setting value.
   *
   * @return $this
   *   The class instance that this method is called on.
   */
  public function setSetting($setting_name, $value);

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc