Pimcore\Model\Tool\Targeting\Rule::fireEvent PHP Метод

fireEvent() публичный статический Метод

public static fireEvent ( $key, $value = null )
$key
$value
    public static function fireEvent($key, $value = null)
    {
        if ($value === null) {
            $value = true;
        }
        $front = \Zend_Controller_Front::getInstance();
        $plugin = $front->getPlugin("Pimcore\\Controller\\Plugin\\Targeting");
        if ($plugin instanceof \Pimcore\Controller\Plugin\Targeting) {
            $plugin->addEvent($key, $value);
        }
    }