vendor/friendsofsymfony/ckeditor-bundle/src/Model/ToolbarManagerInterface.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__.'ToolbarManagerInterface 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 ToolbarManagerInterface
  21. {
  22.     /**
  23.      * @return bool
  24.      */
  25.     public function hasItems();
  26.     /**
  27.      * @return array
  28.      */
  29.     public function getItems();
  30.     /**
  31.      * @param array $items
  32.      */
  33.     public function setItems(array $items);
  34.     /**
  35.      * @param string $name
  36.      *
  37.      * @return bool
  38.      */
  39.     public function hasItem($name);
  40.     /**
  41.      * @param string $name
  42.      *
  43.      * @return array
  44.      */
  45.     public function getItem($name);
  46.     /**
  47.      * @param string $name
  48.      * @param array  $item
  49.      */
  50.     public function setItem($name, array $item);
  51.     /**
  52.      * @return bool
  53.      */
  54.     public function hasToolbars();
  55.     /**
  56.      * @return array
  57.      */
  58.     public function getToolbars();
  59.     /**
  60.      * @param array $toolbars
  61.      */
  62.     public function setToolbars(array $toolbars);
  63.     /**
  64.      * @param string $name
  65.      *
  66.      * @return bool
  67.      */
  68.     public function hasToolbar($name);
  69.     /**
  70.      * @param string $name
  71.      *
  72.      * @return array
  73.      */
  74.     public function getToolbar($name);
  75.     /**
  76.      * @param string $name
  77.      * @param array  $toolbar
  78.      */
  79.     public function setToolbar($name, array $toolbar);
  80.     /**
  81.      * @param string $name
  82.      *
  83.      * @return array
  84.      */
  85.     public function resolveToolbar($name);
  86. }