Back to BaseLayout class

Method render

public string
render
(mixed $displayData)
Method to render the layout.
Parameters
  • array $displayData Array of properties available for use inside the layout file to build the displayed output
Returns
  • string The necessary HTML to display the layout
Since
  • 3.0
Class: BaseLayout
Project: Joomla

Method render - Source code

/**
 * Method to render the layout.
 *
 * @param   array  $displayData  Array of properties available for use inside the layout file to build the displayed output
 *
 * @return  string  The necessary HTML to display the layout
 *
 * @since   3.0
 */
public function render($displayData)
{
    // Automatically merge any previously data set if $displayData is an array
    if (\is_array($displayData)) {
        $displayData = array_merge($this->data, $displayData);
    }
    return '';
}