Your IP : 216.73.216.61


Current Path : /home/gonzalx/www/administrator/components/com_widgetkit/src/Widget/
Upload File :
Current File : /home/gonzalx/www/administrator/components/com_widgetkit/src/Widget/WidgetInterface.php

<?php

namespace YOOtheme\Widgetkit\Widget;

use YOOtheme\Widgetkit\Content\ContentInterface;

interface WidgetInterface
{
    /**
     * Gets the config or config value.
     *
     * @param  mixed $name
     * @return array
     */
    public function getConfig($name = null);

    /**
     * Renders the widget.
     *
     * @param  ContentInterface $content
     * @param  array            $settings
     * @return string
     */
    public function render(ContentInterface $content, array $settings);

    /**
     * Gets the type data as array.
     *
     * @return array
     */
    public function toArray();
}