Commit 50db4515 authored by Christian Spitzlay's avatar Christian Spitzlay
Browse files

add interface and annotation object definition for ThemeKey operator and property

parent efae2912
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Provides Drupal\themekey\OperatorInterface
 */

namespace Drupal\themekey;

use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Defines an interface for ThemeKey operator plugins.
 */
interface OperatorInterface extends PluginInspectionInterface {

  /**
   * Return the name of the ThemeKey operator.
   *
   * @return string
   */
  public function getName();

  /**
   * Return the Description of the ThemeKey operator.
   *
   * @return float
   */
  public function getDescription();

}
+31 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Provides Drupal\themekey\PropertyInterface
 */

namespace Drupal\themekey;

use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Defines an interface for ThemeKey property plugins.
 */
interface PropertyInterface extends PluginInspectionInterface {

  /**
   * Return the name of the ThemeKey property.
   *
   * @return string
   */
  public function getName();

  /**
   * Return the Description of the ThemeKey property.
   *
   * @return float
   */
  public function getDescription();

}