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

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

public static getByName ( $name ) : null | Rule
$name
Результат null | Rule
    public static function getByName($name)
    {
        try {
            $target = new self();
            $target->setName($name);
            $target->getDao()->getByName();
            return $target;
        } catch (\Exception $e) {
            return null;
        }
    }