Same name and namespace in other branches
  1. 8.x-1.x src/ElementAttachmentInterface.php \Drupal\colorbox\ElementAttachmentInterface 1 comment

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

Title Sort descending Modifiers Object type Summary 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