public function unserializeData($value)
    {
        if (\is_array($value)) {
            return $value;
        }

        if (0 === strpos($value, 'a:')) {
            return \unserialize($value, ['allowed_classes' => false]);
        }

        return $value;
    }
public function unserializeData($value)
    {
        if (\is_array($value)) {
            return $value;
        }

        if (0 === strpos($value, 'a:')) {
            return \unserialize($value, ['allowed_classes' => false]);
        }

        return $value;
    }
public function unserializeData ( $ value ) { if ( \ is_array ( $ value ) ) { return $ value ; } if ( 0 === strpos ( $ value , 'a:' ) ) { return \ unserialize ( $ value , [ 'allowed_classes' => false ] ) ; } return $ value ; }
Unserialize the value from the database if possible, return the value as is otherwise.

@param mixed $value The array of data from the database.

@return array
Unserialize the value from the database if possible return the value as is otherwise .