Nextras\Forms\Controls\Fragments\ComponentControlTrait::getPersistentParams PHP Method

getPersistentParams() public static method

This default implementation detects persistent parameters by annotation @persistent.
public static getPersistentParams ( ) : array
return array
    public static function getPersistentParams()
    {
        $rc = new \ReflectionClass(get_called_class());
        $params = [];
        foreach ($rc->getProperties(\ReflectionProperty::IS_PUBLIC) as $rp) {
            if (!$rp->isStatic() && ComponentReflection::parseAnnotation($rp, 'persistent')) {
                $params[] = $rp->getName();
            }
        }
        return $params;
    }