You are here

interface ProgressStepInterface in Forms Steps 8

An interface for progress step value objects.

Hierarchy

Expanded class hierarchy of ProgressStepInterface

All classes that implement ProgressStepInterface

File

src/ProgressStepInterface.php, line 8

Namespace

Drupal\forms_steps
View source
interface ProgressStepInterface {

  /**
   * Gets the progress step's ID.
   *
   * @return string
   *   The progress step's ID.
   */
  public function id();

  /**
   * Gets the progress step's label.
   *
   * @return string
   *   The progress step's label.
   */
  public function label();

  /**
   * Gets the progress step's weight.
   *
   * @return int
   *   The progress step's weight.
   */
  public function weight();

  /**
   * Gets the active routes for this progress step.
   *
   * @return array
   *   The active routes for this progress step.
   */
  public function activeRoutes();

  /**
   * Set the active routes for this progress step.
   *
   * @param array $routes
   *   Routes to set for this progress step.
   */
  public function setActiveRoutes(array $routes);

  /**
   * Gets the link for this progress step.
   *
   * @return string
   *   The link for this progress step.
   */
  public function link();

  /**
   * Set the link for this progress step.
   *
   * @param string $link
   *   Links to set for this progress step.
   */
  public function setLink($link);

  /**
   * Gets the link visibility for this progress step.
   *
   * @return array
   *   The steps for which the link is visible for this progress step.
   */
  public function linkVisibility();

  /**
   * Set the link visibility for this progress step.
   *
   * @param array $steps
   *   Set the steps where the link will be visible.
   */
  public function setLinkVisibility(array $steps);

}

Members

Namesort descending Modifiers Type Description Overrides
ProgressStepInterface::activeRoutes public function Gets the active routes for this progress step. 1
ProgressStepInterface::id public function Gets the progress step's ID. 1
ProgressStepInterface::label public function Gets the progress step's label. 1
ProgressStepInterface::link public function Gets the link for this progress step. 1
ProgressStepInterface::linkVisibility public function Gets the link visibility for this progress step. 1
ProgressStepInterface::setActiveRoutes public function Set the active routes for this progress step. 1
ProgressStepInterface::setLink public function Set the link for this progress step. 1
ProgressStepInterface::setLinkVisibility public function Set the link visibility for this progress step. 1
ProgressStepInterface::weight public function Gets the progress step's weight. 1