1 <?php
2 /**
3 * @package Joomla.Libraries
4 * @subpackage Layout
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Interface to handle display layout
14 *
15 * @link https://docs.joomla.org/Special:MyLanguage/Sharing_layouts_across_views_or_extensions_with_JLayout
16 * @since 3.0
17 */
18 interface JLayout
19 {
20 /**
21 * Method to escape output.
22 *
23 * @param string $output The output to escape.
24 *
25 * @return string The escaped output.
26 *
27 * @since 3.0
28 */
29 public function escape($output);
30
31 /**
32 * Method to render the layout.
33 *
34 * @param array $displayData Array of properties available for use inside the layout file to build the displayed output
35 *
36 * @return string The rendered layout.
37 *
38 * @since 3.0
39 */
40 public function render($displayData);
41 }
42