Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / IPopoverObject.class.php
1 <?php
2 namespace wcf\data;
3
4 /**
5 * Database objects that support links with preview popovers via `WoltLabSuite/Core/Controller/Popover`
6 * can implement this interface so that when the `anchor` template plugin is used and the CSS class name
7 * returned by `getPopoverLinkClass()` is given, the `data-object-id` attribute is automatically added
8 * to support the preview popover.
9 *
10 * @author Matthias Schmidt
11 * @copyright 2001-2020 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\Data
14 * @since 5.3
15 */
16 interface IPopoverObject extends IIDObject, ITitledLinkObject {
17 /**
18 * Returns the CSS class that objects of this type use for popover links.
19 *
20 * @return string
21 */
22 public function getPopoverLinkClass();
23 }