You are here

ImageZoomOptionsInterface.php in Image Zoom 8.3

File

src/Entity/ImageZoomOptionsInterface.php
View source
<?php

namespace Drupal\imagezoom\Entity;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface for defining Image Zoom options profiles.
 */
interface ImageZoomOptionsInterface extends ConfigEntityInterface {

  /**
   * Returns all options for the profile.
   *
   * @return array
   *   The array of options.
   */
  public function getOptions();

  /**
   * Sets the profile options.
   *
   * @param array $options
   *   An array of options.
   */
  public function setOptions(array $options);

  /**
   * Returns the value of an option.
   *
   * @param string $name
   *   The option name.
   *
   * @return mixed
   *   The option value.
   */
  public function getOption($name);

  /**
   * Sets the value of an option.
   *
   * @param string $name
   *   The option name.
   * @param mixed $value
   *   The option value.
   */
  public function setOption($name, $value);

}

Interfaces

Namesort descending Description
ImageZoomOptionsInterface Provides an interface for defining Image Zoom options profiles.