You are here

BreakpointInterface.php in Bootstrap Layout Builder 1.x

Same filename and directory in other branches
  1. 2.x src/BreakpointInterface.php

File

src/BreakpointInterface.php
View source
<?php

namespace Drupal\bootstrap_layout_builder;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface for Bootstrap Layout Builder breakpoints entities.
 */
interface BreakpointInterface extends ConfigEntityInterface {

  /**
   * Returns the base class fo the breakpoint.
   *
   * @return string
   *   The base class of the breakpoint.
   */
  public function getBaseClass();

  /**
   * Returns the status of the breakpoint.
   *
   * @return bool
   *   Either "enabled" or "disabled".
   */
  public function getStatus();

  /**
   * Returns region class of a breakpoint.
   *
   * @param string $key
   *   The position of region.
   * @param string $strucutre_id
   *   The layout option structure id.
   *
   * @return string
   *   The class of a region.
   */
  public function getClassByPosition($key, $strucutre_id);

}

Interfaces

Namesort descending Description
BreakpointInterface Provides an interface for Bootstrap Layout Builder breakpoints entities.