You are here

PhotoswipeAssetsManagerInterface.php in PhotoSwipe 3.x

Namespace

Drupal\photoswipe

File

src/PhotoswipeAssetsManagerInterface.php
View source
<?php

namespace Drupal\photoswipe;


/**
 * Interface for photoswipe assets manager.
 */
interface PhotoswipeAssetsManagerInterface {

  /**
   * Attach photoswipe assets.
   *
   * @param array $element
   *   The render array to attach photoswipe assets to.
   */
  public function attach(array &$element);

  /**
   * Are photoswipe assets attached to this page in this request?.
   *
   * @return bool
   *   Whether photoswipe assets attached to this page or not.
   */
  public function isAttached();

}

Interfaces

Namesort descending Description
PhotoswipeAssetsManagerInterface Interface for photoswipe assets manager.