vendor/friendsofsymfony/ckeditor-bundle/src/Model/TemplateManagerInterface.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the FOSCKEditor Bundle.
  4.  *
  5.  * (c) 2018 - present  Friends of Symfony
  6.  * (c) 2009 - 2017     Eric GELOEN <geloen.eric@gmail.com>
  7.  *
  8.  * For the full copyright and license information, please read the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace FOS\CKEditorBundle\Model;
  12. @trigger_error(
  13.     'The '.__NAMESPACE__.'TemplateManagerInterface is deprecated since 1.x '.
  14.     'and will be removed with the 2.0 release.',
  15.     E_USER_DEPRECATED
  16. );
  17. /**
  18.  * @author GeLo <geloen.eric@gmail.com>
  19.  */
  20. interface TemplateManagerInterface
  21. {
  22.     /**
  23.      * @return bool
  24.      */
  25.     public function hasTemplates();
  26.     /**
  27.      * @return array
  28.      */
  29.     public function getTemplates();
  30.     /**
  31.      * @param array $templates
  32.      */
  33.     public function setTemplates(array $templates);
  34.     /**
  35.      * @param string $name
  36.      *
  37.      * @return bool
  38.      */
  39.     public function hasTemplate($name);
  40.     /**
  41.      * @param string $name
  42.      *
  43.      * @return array
  44.      */
  45.     public function getTemplate($name);
  46.     /**
  47.      * @param string $name
  48.      * @param array  $template
  49.      */
  50.     public function setTemplate($name, array $template);
  51. }