You are here

interface ElementAttachmentInterface in Colorbox 8

An interface for attaching things to the built page.

Hierarchy

Expanded class hierarchy of ElementAttachmentInterface

All classes that implement ElementAttachmentInterface

1 file declares its use of ElementAttachmentInterface
ColorboxFormatter.php in src/Plugin/Field/FieldFormatter/ColorboxFormatter.php

File

src/ElementAttachmentInterface.php, line 8

Namespace

Drupal\colorbox
View source
interface ElementAttachmentInterface {

  /**
   * Attach information to the page array.
   *
   * @param array $element
   *   The page array.
   */
  public function attach(array &$element);

  /**
   * Check if the attachment should be added to the current page.
   *
   * @return bool
   *   TRUE if the attachment should be added to the current page.
   */
  public function isApplicable();

}

Members

Namesort descending Modifiers Type Description Overrides
ElementAttachmentInterface::attach public function Attach information to the page array. 1
ElementAttachmentInterface::isApplicable public function Check if the attachment should be added to the current page. 1