for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Routes.
*
* @copyright Zikula contributors (Zikula)
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
* @author Zikula contributors <[email protected]>.
* @see https://ziku.la
* @version Generated by ModuleStudio 1.4.0 (https://modulestudio.de).
*/
declare(strict_types=1);
namespace Zikula\RoutesModule\Entity;
use Zikula\RoutesModule\Entity\Base\AbstractRouteEntity as BaseEntity;
use Doctrine\ORM\Mapping as ORM;
* Entity class that defines the entity structure and behaviours.
* This is the concrete entity class for route entities.
* @ORM\Entity(repositoryClass="Zikula\RoutesModule\Entity\Repository\RouteRepository")
* @ORM\Table(name="zikula_routes_route",
* indexes={
* @ORM\Index(name="workflowstateindex", columns={"workflowState"})
* }
* )
class RouteEntity extends BaseEntity
{
* When getting options, the `zkNoBundlePrefix` and `i18n` values must
* be added before returning. These will override any values for same keys
* set in the `options` array.
public function getOptions(): array
$options = $this->options;
// zkNoBundlePrefix value is the _opposite_ of prependBundlePrefix value
$options['zkNoBundlePrefix'] = !$this->prependBundlePrefix;
$options['i18n'] = $this->translatable;
return $options;
}