Commit 3b134876 authored by Sam152's avatar Sam152 Committed by Sam152
Browse files

Issue #2646540 by Sam152: Change PageAttachmentInterface to ElementAttachmentInterface

parent 81f886ab
......@@ -13,7 +13,7 @@ use Drupal\Core\Config\ConfigFactoryInterface;
/**
* An implementation of PageAttachmentInterface for the colorbox library.
*/
class ColorboxAttachment implements PageAttachmentInterface {
class ColorboxAttachment implements ElementAttachmentInterface {
/**
* The service to determin if colorbox should be activated.
*
......
......@@ -5,15 +5,15 @@ namespace Drupal\colorbox;
/**
* An interface for attaching things to the built page.
*/
interface PageAttachmentInterface {
interface ElementAttachmentInterface {
/**
* Attach information to the page array.
*
* @param array $page
* @param array $element
* The page array.
*/
public function attach(array &$page);
public function attach(array &$element);
/**
* Check if the attachment should be added to the current page.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment