interface ElementAttachmentInterface in Colorbox 8
An interface for attaching things to the built page.
Hierarchy
- interface \Drupal\colorbox\ElementAttachmentInterface
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\colorboxView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ElementAttachmentInterface:: |
public | function | Attach information to the page array. | 1 |
ElementAttachmentInterface:: |
public | function | Check if the attachment should be added to the current page. | 1 |