vendor/activepublishing/bundle-active-wireframe/ActiveWireframeBundle.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3.  * Active Publishing - All right reserved
  4.  *   Full copyright and license information is available in
  5.  *   LICENSE.md which is distributed with this source code.
  6.  *
  7.  * @copyright Copyright (c) Active Publishing (https://activepublishing.fr)
  8.  * @license Creative Common CC BY ND 4.0
  9.  * @author Active Publishing <contact@active-publishing.fr>
  10.  */
  11. namespace ActiveWireframeBundle;
  12. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  13. use ActiveWireframeBundle\Service\Installer;
  14. /**
  15.  * Class ActiveWireframeBundle
  16.  * @package ActiveWireframeBundle
  17.  */
  18. class ActiveWireframeBundle extends AbstractPimcoreBundle
  19. {
  20.     const COMPOSER_PACKAGE_NAME  "activepublishing/bundle-active-wireframe";
  21.     const BUNDLE_ID              "ActiveWireframeBundle";
  22.     const BUNDLE_NAME            "ActiveWireframe";
  23.     const BUNDLE_LICENSE_ID      "11";
  24.     const BUNDLE_DESCRIPTION     "Active Wireframe by Active Publishing©";
  25.     const BUNDLE_VERSION         "4.2.1";
  26.     const BUNDLE_REVISION        103;
  27.     const PIMCORE_MIN_VERSION    "10.0.0";
  28.     /**
  29.      * @return string
  30.      */
  31.     protected function getComposerPackageName(): string
  32.     {
  33.         return self::COMPOSER_PACKAGE_NAME;
  34.     }
  35.     /**
  36.      * @return string
  37.      */
  38.     public function getNiceName(): string
  39.     {
  40.         return self::BUNDLE_NAME;
  41.     }
  42.     /**
  43.      * @return string
  44.      */
  45.     public function getDescription(): string
  46.     {
  47.         return self::BUNDLE_DESCRIPTION;
  48.     }
  49.     /**
  50.      * @return string
  51.      */
  52.     public function getVersion(): string
  53.     {
  54.         return self::BUNDLE_VERSION;
  55.     }
  56.     /**
  57.      * {@inheritdoc}
  58.      */
  59.     public function getInstaller(): object|null
  60.     {
  61.         return $this->container->get(Installer::class);
  62.     }
  63.     /**
  64.      * {@inheritdoc}
  65.      */
  66.     public function getAdminIframePath()
  67.     {
  68. //        return '/admin/activewireframe/setup/setup';
  69.     }
  70.     /**
  71.      * @return array
  72.      */
  73.     public function getJsPaths(): array
  74.     {
  75.         return [
  76.             '/bundles/activewireframe/js/pimcore/document/printcontainer.js',
  77.             '/bundles/activewireframe/js/pimcore/startup.js'
  78.         ];
  79.     }
  80.     /**
  81.      * @inheritDoc
  82.      */
  83.     public function getCssPaths(): array
  84.     {
  85.         return [];
  86.     }
  87.     /**
  88.      * @inheritDoc
  89.      */
  90.     public function getEditmodeJsPaths(): array
  91.     {
  92.         return [
  93.             '/bundles/activewireframe/js/pimcore/document/editables/renderlet.js',
  94.             '/bundles/activewireframe/js/pimcore/document/editables/areablock.js'
  95.         ];
  96.     }
  97.     /**
  98.      * @inheritDoc
  99.      */
  100.     public function getEditmodeCssPaths(): array
  101.     {
  102.         return [];
  103.     }
  104. }